473,390 Members | 1,482 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

Windows Form login question

Hi,

In my C# Windows Form project, saying in form frmLogin I have two TextBoxes,
UserName, Password.
How do I make the frmLogin remember the current UserName,
so next time I login to the frmLogin, the UserName textbox has the last time
login UserName value?
given that the application is running on Windows XP system.
Thanks for help.
Jason
Feb 19 '06 #1
4 5300
you could store the value in the registry maybe.

msdn.microsoft.com/library/en-us/dndotnet/html/persistappsettnet.asp

are you having seperate userids for your program ?

or using the Currently Logged In User ?

Feb 19 '06 #2
Thanks!
If the User is the first time enter into the application, the user has to
key in the UserName and Password to login.
After that, the UserName textbox in frmLogin will bring out the last
UserName value logged in.
<fa*********@gmail.com>
???????:11*********************@g14g2000cwa.google groups.com...
you could store the value in the registry maybe.

msdn.microsoft.com/library/en-us/dndotnet/html/persistappsettnet.asp

are you having seperate userids for your program ?

or using the Currently Logged In User ?

Feb 19 '06 #3
On Sun, 19 Feb 2006 16:28:51 +0800, "Jason Huang"
<Ja************@hotmail.com> wrote:
Thanks!
If the User is the first time enter into the application, the user has to
key in the UserName and Password to login.
After that, the UserName textbox in frmLogin will bring out the last
UserName value logged in.
<fa*********@gmail.com>
???????:11*********************@g14g2000cwa.googl egroups.com...
you could store the value in the registry maybe.

msdn.microsoft.com/library/en-us/dndotnet/html/persistappsettnet.asp

are you having seperate userids for your program ?

or using the Currently Logged In User ?

Is this application on the users's machine or a server?

Storing the last user will work if the app is on a user machine, but
if it's on a server being accessed by multiple users you'll always get
the last user who logged in, but it may not be the current user.

Does that make sense?

Otis Mukinfus
http://www.otismukinfus.com
http://www.tomchilders.com
Feb 19 '06 #4
Mel
Download the example TaskVision from Microsoft, includes source code. It
has a login form that does exactly what you want.


"Jason Huang" <Ja************@hotmail.com> wrote in message
news:uL****************@TK2MSFTNGP09.phx.gbl...
Hi,

In my C# Windows Form project, saying in form frmLogin I have two
TextBoxes,
UserName, Password.
How do I make the frmLogin remember the current UserName,
so next time I login to the frmLogin, the UserName textbox has the last
time login UserName value?
given that the application is running on Windows XP system.
Thanks for help.
Jason

Feb 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Babu Mannaravalappil | last post by:
My Windows application (C#) has a login screen and a user table to handle user rights and accessibility. This is independant of the OS level user security. At the time of launching the...
4
by: Cantekin Guneser | last post by:
i am new to windows aplication, i am planning to desing a program which has login form. i want to use in formation at second form which i used in login form. ex: i filled a dataset in login form...
9
by: Justin Engelman | last post by:
Hi, I have a website that uses an ISAPI filter that will redirect anyone going to any page on the site to an SSL login page (on a different website with the same root domain) if they do not have...
12
by: JenHu | last post by:
Hi all, I have to ask a stupid question: In asp.net, I use Response.Redirect ("Main.aspx") to redirect pages, but what is the syntax of redirect forms in vb.net windows application? I have...
1
by: roshina | last post by:
Hi Iam facing a problem in my project, developing a web site for online shopping in ASP on windows XP using IIS server. All the validations are ok but the new password is not upadated in the data...
7
by: programming | last post by:
Hi all, i have been having trouble with a login script that works on my windows machine, however when i upload it to the Unix server through VPN, the same script won't work! It won't parse...
30
by: diane | last post by:
I've got an application running with table-based security: i capture the user's windows login with fOsusername, then have them enter a password checked against their username/login in my own table....
1
by: Michael Howes | last post by:
I and trying to detect idle time or sorts in the applications I'm building. To do this the main Form also inherits from IMessageFilter and I listen for WM_MOUSEMOVE. When that happens I reset a...
3
by: stacey | last post by:
Hi all, I have a quick question about form classes. I am following this tutorial: http://www.evolt.org/article/PHP_Login_System_with_Admin_Features/17/60384/index.html Basically, it is a login...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.