It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

help pls

Moderator: dafunkymunky

help pls

Postby awais1989 on Wed Jun 06, 2007 2:09 pm

i have 2 text boxes text1 and text2, i want that whn some text is added in text box1 it will save to a text file and thn display it in text box2 by reading from that file
awais1989
 
Posts: 0
Joined: Wed Jun 06, 2007 2:03 pm

Re: help pls

Postby amino0o on Fri Jun 29, 2007 9:40 am

awais1989 wrote:i have 2 text boxes text1 and text2, i want that whn some text is added in text box1 it will save to a text file and thn display it in text box2 by reading from that file



create a button then type this under the button

dim text as string = textbox1.text
on error goto eError
open "C:/text.txt" for output as #1
print #1, text
close #1
textbox2.text = text
exit sub
eError:
msgbox "Error"
end sub





amino0o
amino0o
 
Posts: 6
Joined: Thu Jun 28, 2007 11:11 pm


Who is online

Users browsing this forum: No registered users and 0 guests