password help

Posted on 1998-08-10
Last Modified: 2010-04-30
I want to allow the user to enter his username/password into a text boxes and have it then recorded into the windows registry. to make it his own but so it wont be in a file. then I need the code to be able to go to the registry and check if the name and password are true or not. Is this possible?
Question by:Zands
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3

Author Comment

ID: 1468467
Edited text of question

Expert Comment

ID: 1468468

Accepted Solution

cantrell earned 100 total points
ID: 1468469
Yes, this is possible. Althought it's pretty straight forward, it does require a bit of code to do it.

All you're basically doing is writing to the registry, then reading from the registry. However, to do this (like I said before) requires a bit of code - mostly just setting up the function declarations, and constants. Setting those up is a one time deal though.

I started cutting and pasting some code I have that does exactly what you want when I realized that it was being wrapped by this text box and looked pretty chopped up.

Outlined, whenever you want to read and write to the registry, the function declarations and constants are always the same. So, if you've done it once, save that module and just include it in your next project any time you want to read, write or query the registry.

There are some controls I've heard of to do all of the registry stuff for you, but I'm not sure how well they work and from my experience it's sometimes better to just get your hands dirty. Typically you'll have to eventually anyway.

I would still be happy to cut and paste my code if you like.

Just let me know.

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 1468470
Chris is it possible to e-mail it to me?  I think It would be easier if I can see it and then go from there, being that Im new to programming it takes forever to look things up if you dont know what there called.  Thanks

Expert Comment

ID: 1468471
Sure. I will e-mail it to you.

Author Comment

ID: 1468472
Chris that is a masterful piece of code.  Thanks so much!! I will probally have to study it for a week to just get a grasp of what you did tho.  :)

Expert Comment

ID: 1468473
Thanks Zands,
Most of the code in the .bas module stays constant for any registry stuff. You should virutally never need to change any of that. The only thing you really need to worry about changing is in the code of the two command button clicks (i.e. what you send to the .bas module).

Good luck and let me know if you need any more help with it.
It should be pretty easy to add additional peoples password, usernames, etc.


Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Cannot Load VB6 on Windows 10. Installed OK but error on opening existing project. 7 115
MS Date Picker 64 bit 32 bit issue 12 63
Hide vba in gp 7 113
RUNRMTCMD from AS/400 12 86
There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question