Solved

password help

Posted on 1998-08-10
7
138 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
Comment Utility
Edited text of question
0
 

Expert Comment

by:BRANT
Comment Utility
 
0
 
LVL 2

Accepted Solution

by:
cantrell earned 100 total points
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

by:Zands
Comment Utility
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
Comment Utility
Sure. I will e-mail it to you.
0
 

Author Comment

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now