Results 1 to 8 of 8

Thread: [RESOLVED] Remembering Text.

Hybrid View

  1. #1
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,434

    Re: Remembering Text.

    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

  2. #2
    Frenzied Member
    Join Date
    Jan 2006
    Posts
    1,875

    Re: Remembering Text.

    Quote Originally Posted by .paul. View Post
    @riteshjain1982 - you forgot to mention that you need to add a my.settings string setting named Notepad to use that method
    thanks for correction
    __________________
    Rate the posts that helped you

  3. #3
    Lively Member swingyswongy's Avatar
    Join Date
    Jun 2010
    Location
    Bay area, CA
    Posts
    83

    Re: Remembering Text.

    Quote Originally Posted by .paul. View Post
    @riteshjain1982 - you forgot to mention that you need to add a my.settings string setting named Notepad to use that method
    how do you do that?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width