473,473 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VB->Saving & Loading A File

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
2 1018
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: hansiman | last post by:
Why can't I use Response.Redirect in a class.vb file? /M
2
by: Shapper | last post by:
Hello, I have an aspx page which in its script has: Sub Page_Load(...) ... End Sub And 2 functions:
3
by: Shapper | last post by:
Hello, I just installed Microsoft .NET Framework SDK v1.1. (http://www.microsoft.com/downloads/details.aspx?FamilyId=9B3A2CA6-3647-4070-9F41-A333C6B9181D&displaylang=en) I need to compile to a...
2
by: Kevin Gabbert | last post by:
Hiya. I'm running vb.net 2003 on a virtual machine, and I have my source files located on the network. 256 megs virtual ram, MY machine has 1,000 megs ram. however, when I work for a period...
0
by: dba123 | last post by:
In my .vb file of my VB.NET console app, I have defined several different email Functions to send out email using .NET Mail namespace and the emails are set to HTML format. In the body of them,...
2
by: Bill nguyen | last post by:
Suddenly a new file was added to forms that I created in the last 2 days. I created and named a form frmDTDownload. In Solution Explorer, now I have frmDTNDownload.vb frmDTNDownload.Designer.vb...
0
by: Elmo Watson | last post by:
I'm trying to add some code to the "MySettings_SettingsLoaded" event, in the Settings.vb file, in order to provide some dynamic content...... However, I'm running into a stumbling block - I need...
1
by: DesCF | last post by:
Below is a section from my aspx web page. If I create the same but place the function GetPhotos() in a separate vb file I get the following errors underlined in blue: List(Of String) - Type...
7
by: JeremyWoertink | last post by:
I have an app that I need to make changes to, and on my local copy I have a start.aspx.vb file that I edited and tested, now when I go to the app on the server, it doesn't show any of the .vb...
3
by: Jerry Spence1 | last post by:
I have a project that has these files: frmCD.resx frmCD.Designer.vb frmCD.vb I had a virus which wiped out the frmCD.vb. Is it possible to regenerate it from the other files? -Jerry
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.