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

StreamReader/Writer Text File?

Moderator: dafunkymunky

StreamReader/Writer Text File?

Postby jakeeady on Tue Sep 28, 2010 4:09 pm

Hi, I've Googled this for a long time but I haven't come across an answer...or I didn't realize it if i did.

I need to create an advanced clipboard that will allow you to save 50 phrases for later use. It will have 5 tabs, 10 phrases on each tab with a button next to each phrase to copy. So, the user will open the program; click the appropriate tab then click the button next to a phrase to copy it to the computer's clipboard so they can paste it somewhere else.

I want the user to be able to change the text on the tabs, buttons and phrases while using the program...dynamic.

My question is how do I store the text they create for each control? They need to be able to change the text while using the program, but if they close the program, the next time it's opened it'll still be there. Is it possible to save the information to a text file and use it to dynamically load the information? Or would something like an Excel file work better?

I'm using Visual Basic 2008.

Thank you for any help!
jakeeady
 
Posts: 2
Joined: Tue Sep 28, 2010 3:53 pm

Re: StreamReader/Writer Text File?

Postby HotNoob on Tue Sep 28, 2010 4:56 pm

Im not sure how to do this in VB, but in c# all i would do is save the text when they close the program. I'm pretty sure VB has some sort of event that you can call just before the program is being saved.

Then you save the clipboard data into a file, and when the program starts up again, you load the file data into the program.
HotNoob
100+ Club
 
Posts: 169
Joined: Sun May 02, 2010 1:38 am


Who is online

Users browsing this forum: No registered users and 2 guests