Solved

password help

Posted on 1998-08-10
7
146 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
[X]
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
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

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

Independent Software Vendors: 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!

Question has a verified solution.

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

Suggested Solutions

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…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

710 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