storing login, password and server name in the registry

  • Thread starter Thread starter Sam
  • Start date Start date
S

Sam

Hi,
I'd like to create a form for my user to enter login information. This
information should be stored somewhere, best way I guess is the
registry. Then if a user attempt to login on the same machine later on,
the form will be filled in automatically from the registry.

Is it possible ? How can I do that ? I don't know how to access the
registry ?

Thx
 
my mistake, I do NOT intend to store the password. However I intend to
store other information, so I understand I can get the username with
Environment.username, but then how do I store my txtboxes values in the
registry ?

thx
 
Cor,
Could you send the link again ? I'm not authorized to view this page,
it must belong to your session or something !

Thx
 
Actually, would that be better to store this information in a XML file
instead ?
 
Sam,

Storing information about the configuration as the last settings from the
screen is for me the registry. Setting information about the application is
for me an xml.file

I hope this gives ideas

The link is a complete open link to msdn.microft.com

Cor
 
scorpion53061,
I like that, it's more what I'd like to do. However, how can I set the
XML file to be specific to each user. If it's shared by everyone, it's
not gonna work.

Regards
 
If you are referring to the registry link yes it came up when I clicked
on it.
 
Create a XML file for each user. When a new user wants to use the
program it should create the XML file specific to them.
 
Just be careful Sam. Isolated Storage is great but you are going to have
to ask your users to adjust security settings in the Framework to make
it work.
 
!
What kind of security settings ? That's very important ! Would that be
the same kind as the registry ?
 
I will get back to you on this later today with the exact specifics.
Another guy named Bill Ryan and I worked extensively on this issue some
time ago and this was one of the possibilities considered. However, we
ended up realizing it was not the greatest solution because of this
problem.
 
well, i'm doing this, with DomainIsolationByUser level security, i
guess that should be ok
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top