SaveMySettingsOnExit Property


SaveMySettingsOnExit Property

Location

My.Application.SaveMySettingsOnExit

Syntax

     Dim result As Boolean = My.Application.SaveMySettingsOnExit 

or:

     My.Application.SaveMySettingsOnExit = value 


value (required; Boolean)

Indicates whether the settings should be saved on exit (true) or not (False)

Description

The SaveMySettingsOnExit property indicates whether changes made to entries in the My.Settings object will be saved automatically when the application exits (true) or not (False). You can also modify this property while your application is running.

Usage at a Glance

Although you can modify this setting when your application is running, its value will revert to its design-time setting the next time the application is run. To permanently change the value, modify the project's Application Properties and set the "Save My.Settings on Shutdown" as desired.

Related Framework Entries

  • Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.SaveMySettingsOnExit Property

  • System.Configuration.ApplicationSettingsBase.Save Method

See Also

Application Object, Settings Object




Visual Basic 2005(c) In a Nutshell
Visual Basic 2005 in a Nutshell (In a Nutshell (OReilly))
ISBN: 059610152X
EAN: 2147483647
Year: 2004
Pages: 712

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net