[HELP] How do you add a "Save Settings" code in my menu strip menu?

Posts 1–4 of 4 · Page 1 of 1
[HELP] How do you add a "Save Settings" code in my menu strip menu?
Here's what I'm trying to do:



Thank you.
here
Code:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
         My.Settings.username = TextBox1.Text
        My.Settings.Save()
        My.Settings.Reload()

        My.Settings.password = TextBox2.Text
        My.Settings.Save()
        My.Settings.Reload()
        End
        End
        'go to properites and make 2 strings called -username- and -password-
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        TextBox1.Text = My.Settings.Username
        TextBox2.Text = My.Settings.Password
    End Sub
Depends what you want to do, there's many ways of doing it.

Some common ones:

1. Use My.Settings
2. Use Save/GetSetting
3. Write and retrieve an ini file.

Choose one and we can help better.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?