ToolStripManager.LoadSettings Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads settings for a Form.
Overloads
LoadSettings(Form) |
Loads settings for the given Form using the full name of the Form as the settings key. |
LoadSettings(Form, String) |
Loads settings for the specified Form using the specified settings key. |
LoadSettings(Form)
public:
static void LoadSettings(System::Windows::Forms::Form ^ targetForm);
public static void LoadSettings (System.Windows.Forms.Form targetForm);
static member LoadSettings : System.Windows.Forms.Form -> unit
Public Shared Sub LoadSettings (targetForm As Form)
Parameters
Exceptions
targetForm
is null
.
Remarks
ToolStrip controls that are not on the form at design time when the ToolStrip settings are saved are removed from the Form when the settings are loaded. To reset the settings, comment out the LoadSettings line and leave the SaveSettings line. This will not load any settings and will persist the last state. When you remove the comment from the LoadSettings line, those settings will be applied.
Applies to
LoadSettings(Form, String)
Loads settings for the specified Form using the specified settings key.
public:
static void LoadSettings(System::Windows::Forms::Form ^ targetForm, System::String ^ key);
public static void LoadSettings (System.Windows.Forms.Form targetForm, string key);
static member LoadSettings : System.Windows.Forms.Form * string -> unit
Public Shared Sub LoadSettings (targetForm As Form, key As String)
Parameters
Exceptions
Remarks
ToolStrip controls that are not on the form at design time when the ToolStrip settings are saved are removed from the Form when the settings are loaded. To reset the settings, comment out the LoadSettings line and leave the SaveSettings line. This will not load any settings and will persist the last state. When you remove the comment from the LoadSettings line, those settings will be applied.
Applies to
.NET