Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


Read/Write Data



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Visual Basic Forum
View previous topic :: View next topic  
Author Message
cogbuehi



Joined: 25 Mar 2008
Posts: 2

PostPosted: Tue Apr 01, 2008 2:29 pm    Post subject: Read/Write Data Reply with quote

I need help creating a program that accepts up to 500 characters of text and then writes it to a disk data file. There should be a popup that tells the user the data was written to the file successfully. Once the data is written, i need a button that reads the data file and displays the text in a second textbox.
Back to top
View user's profile Send private message
egendapoco



Joined: 06 May 2008
Posts: 1

PostPosted: Tue May 06, 2008 2:48 am    Post subject: Re: Read/Write Data Reply with quote

Private Sub form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
richtextbox1.maxlength = (500)

End Sub
Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button1.click
Dim path As String = "text.txt"
RichTextBox1.SaveFile(path)
End Sub

Private Sub button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button2.click
Dim path As String = "text.txt"
RichTextBox2.LoadFile(path)
MessageBox.Show("The file was sucessfully saved", "Sucessful", MessageBoxButtons.OK, MessageBoxIcon.Information)
End Sub
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Visual Basic Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap