Solved

password help

Posted on 1998-08-10
7
144 Views
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?
0
Comment
Question by:Zands
  • 3
  • 3
7 Comments
 

Author Comment

by:Zands
ID: 1468467
Edited text of question
0
 

Expert Comment

by:BRANT
ID: 1468468
 
0
 
LVL 2

Accepted Solution

by:
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.
Chris

0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:Zands
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

Zands@earthlink.net
0
 
LVL 2

Expert Comment

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

Author Comment

by:Zands
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.  :)
0
 
LVL 2

Expert Comment

by:cantrell
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.

Chris
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

839 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