ToolStripManager.SaveSettings 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.
Saves settings for the specified Form.
Overloads
SaveSettings(Form) |
Saves settings for the given Form using the full name of the Form as the settings key. |
SaveSettings(Form, String) |
Saves settings for the specified Form using the specified settings key. |
SaveSettings(Form)
public:
static void SaveSettings(System::Windows::Forms::Form ^ sourceForm);
public static void SaveSettings (System.Windows.Forms.Form sourceForm);
static member SaveSettings : System.Windows.Forms.Form -> unit
Public Shared Sub SaveSettings (sourceForm As Form)
Parameters
Exceptions
sourceForm
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
SaveSettings(Form, String)
Saves settings for the specified Form using the specified settings key.
public:
static void SaveSettings(System::Windows::Forms::Form ^ sourceForm, System::String ^ key);
public static void SaveSettings (System.Windows.Forms.Form sourceForm, string key);
static member SaveSettings : System.Windows.Forms.Form * string -> unit
Public Shared Sub SaveSettings (sourceForm 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
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기