I want to make a remember me button for my login form. I have two settings already set which are Username and Password. They are both strings. I also need to know how to close a form and open another. Here is my login button code:
This is my form load code:
Whenever I click remember me and restart it it shows blank text boxes.
VB.NET:
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click
If CheckBox1.Checked Then
My.Settings.Password = PasswordTextBox.Text
My.Settings.Username = UsernameTextBox.Text
End If
Form1.Show()
Me.Hide()
End Sub
VB.NET:
CheckBox1.CheckState = CheckState.Checked
UsernameTextBox.Text = My.Settings.Username
PasswordTextBox.Text = My.Settings.Password
Whenever I click remember me and restart it it shows blank text boxes.