By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,031 Members | 1,334 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,031 IT Pros & Developers. It's quick & easy.

VB->Saving & Loading A File

P: n/a
i want to make my app save certain things..so i can reload them after I
reopen my app..

ex.( save text1.text = "hi" .. to file.so i can to load it to my app later)

how can i do that?

i need examples...b/c im amatuer like a motha...

so i need a save & load sample. for multiple text & labels

anyone, feel free to respond please!!!
Thanx
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Hareth
You need to add an application configuration file to your program . this is
an xml file that you can load values from at runtime .
In that xml under the tag called application setting you can add a key
value pairs , then you can use the key within your application to get the
value. So if you have something like this in your config file
<appSettings>
<!-- connection -->
<add key="connS" value="uid=EDSCUser;password=123456789;data
source=server;persist security info=False;initial catalog=ESCEMEPu34 ? />
<!-- from mail address -->
<add key="greating" value="Hi" />
</appSettings>
You can later in your code get the value this way
String mygreating = ConfigurationSettings.AppSettings.Get("greating")
You can read more on this link
http://blogs.msdn.com/suzcook/archiv...14/132022.aspx
hope this helps
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC

Nov 21 '05 #2

P: n/a
ok i figured it out
"Hareth" <ab******@hotmail.com> wrote in message
news:er**************@TK2MSFTNGP11.phx.gbl...
i want to make my app save certain things..so i can reload them after I
reopen my app..

ex.( save text1.text = "hi" .. to file.so i can to load it to my app
later)

how can i do that?

i need examples...b/c im amatuer like a motha...

so i need a save & load sample. for multiple text & labels

anyone, feel free to respond please!!!
Thanx

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.