Saves settings for the specified System.Windows.Forms.Form using the specified settings key.
- sourceForm
The System.Windows.Forms.Form for which to save settings.
- key
A string representing the settings key for this System.Windows.Forms.Form.
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.