• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

How does vb.net application save variables in system?

I'm writing codes that need to be saved in the VB.NET application.  

Anyone know how to do this?

Such as on open first time someone opens up a form person enters some live data in text boxes like personal information.

Then it will save that information inside the vb.net program.  

At next time the person opens the applicaiton... it will already have the variables stored in the system it will not open up the form due to comparing variables are not empty string.

Does anyone know how that can be accomplished in vb.net?

Thank you

Rex
0
Ferretrex
Asked:
Ferretrex
  • 2
2 Solutions
 
Ravi SinghSenior Software EngineerCommented:
Hi, there are many ways to persistently store data for later use, you could use an XML file, plain text file or even a database. If its a small amount of data then using an XML file or a normal text file would do the trick... see

http://builder.com.com/5100-6373-1045309.html - Reading and writing to text files

Alternatively, in .NET you can create a config file (which has an XML syntax), you could store that data in there if you like and read it when your application is next run, check the following site for a wrapper class that allows reading and writing to the config file:

http://www.freevbcode.com/ShowCode.asp?ID=5318

Let us know which one you prefer so we can help further!
0
 
t_itaniumCommented:
you can do that by storing info in a database and when loading form check the database to see if it is empty..

cheers
0
 
iboutchkineCommented:
Also you can save data in the registry
0
 
t_itaniumCommented:
well i think it is a bad idea to store them in registry ...since many users will enter their information...
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now