Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question about VB
#4
Code:
Private Sub Form1_load
                My.Settings.User = TextBox1.Text
                My.Settings.Pass = TextBox2.Text
End Sub

Private Sub Button_Click
   If CheckBox1.Checked = True Then
                My.Settings.User = TextBox1.Text
                My.Settings.Save()
                My.Settings.Reload()
                My.Settings.Pass = TextBox2.Text
                My.Settings.Save()
                My.Settings.Reload()
   End If
End Sub

This should work for you.
Reply


Messages In This Thread
Question about VB - by Đενɨаηсε™ - 06-10-2010, 08:54 AM
RE: Question about VB - by Fragma - 06-11-2010, 01:50 AM
RE: Question about VB - by Đενɨаηсε™ - 06-11-2010, 10:03 AM
RE: Question about VB - by Fragma - 06-11-2010, 11:20 AM
RE: Question about VB - by Đενɨаηсε™ - 06-11-2010, 11:11 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)