Solved

password help

Posted on 1998-08-10
7
148 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
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

 

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…
Suggested Courses
Course of the Month7 days, 7 hours left to enroll

632 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