|
-
Jun 10th, 2010, 11:23 PM
#1
Re: Remembering Text.
 Originally Posted by riteshjain1982
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
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Jun 10th, 2010, 11:25 PM
#2
Re: Remembering Text.
 Originally Posted by .paul.
@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 
-
Jun 16th, 2010, 04:15 PM
#3
Lively Member
Re: Remembering Text.
 Originally Posted by .paul.
@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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|