Question restore to previous state

contrast

New member
Joined
Aug 3, 2009
Messages
2
Programming Experience
Beginner
hi i'm making a vb aplication (only my second one so dont be to cruel) and i'm just wondering how to make it so that when somebody closes my aplication down and open it back up it restores it to the same state, i've had a look on google and the only thing i can find are how to remember the size and position of the form using the registry and also using flat file databases to hold the values of all the text box's but is there an easier and more elegant way

Thanks
 

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,553
Location
Sydney, Australia
Programming Experience
10+
You should be using Application Settings. Go to the Settings page of the project properties and add settings of type Size and Point for the size and location of the form. You can then get those values at startup and save them at shutdown from the properties of My.Settings in code. You should read more about My.Settings in the documentation.
 
Top Bottom