In this tutorial, we cover the application settings and how they can be used. Application settings allow you to store and change values that will be saved when the application opens again.
Copy and paste below Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Label1.Text = My.Settings.greettext
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
My.Settings.greettext = TextBox1.Text
End Sub
End Class
No comments:
Post a Comment