Quote Originally Posted by riteshjain1982 View Post
may be you can use Settings like this:
Code:
 Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
        My.Settings("Notepad") = TextBox1.Text

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        TextBox1.Text = My.Settings("Notepad")

    End Sub
@riteshjain1982 - you forgot to mention that you need to add a my.settings string setting named Notepad to use that method