System.Windows.Forms.ToolStripManager.LoadSettings Method

Loads settings for the given System.Windows.Forms.Form using the full name of the System.Windows.Forms.Form as the settings key.

Syntax

public static void LoadSettings (Form targetForm)

Parameters

targetForm
The System.Windows.Forms.Form whose name is also the settings key.

Remarks

System.Windows.Forms.ToolStrip controls that are not on the form at design time when the System.Windows.Forms.ToolStrip settings are saved are removed from the System.Windows.Forms.Form when the settings are loaded. To reset the settings, comment out the erload:System.Windows.Forms.ToolStripManager.LoadSettings line and leave the erload:System.Windows.Forms.ToolStripManager.SaveSettings line. This will not load any settings and will persist the last state. When you remove the comment from the erload:System.Windows.Forms.ToolStripManager.LoadSettings line, those settings will be applied.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0