Click here to Skip to main content
15,922,584 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi There,

am new to windows application,I have developer a vb.net windows application and there is
login form I need to implement remember username field .
How it possible give me suggestion.

Thanks...
Posted

Easiest way is to add a field to your Settings.settings file.
Double click on "my Project" in teh Solution Explorer, and select the "Settings" tab on the left.
Add a setting:
Name = UserName
Type = String
Scope = User
Value = (leave blank)

Then in your code:
VB
Dim userName As String = My.Settings.UserName
If (Not String.IsNullOrWhiteSpace(userName)) Then
    ' use user name
End If
To save it again:
VB
My.Settings.UserName = userName
My.Settings.Save()
 
Share this answer
 
Refer - Remember Me Check Box in VB.NET (VS 2008) ?[^].

You will get answers. :)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900