473,382 Members | 1,202 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,382 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 5299
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.