Welcome
admin
admin

2025-10-16 01:07:26

活动情报
7829 363

获取或设置要用作上下文的 Form。

public:

property System::Windows::Forms::Form ^ MainForm { System::Windows::Forms::Form ^ get(); void set(System::Windows::Forms::Form ^ value); };

public System.Windows.Forms.Form MainForm { get; set; }

public System.Windows.Forms.Form? MainForm { get; set; }

member this.MainForm : System.Windows.Forms.Form with get, set

Public Property MainForm As Form

属性值

Form

要用作上下文的 Form。

注解

此属性确定此上下文的主 Form 元素。 此属性可以随时更改。 如果未 OnMainFormClosed 重写,则当参数关闭时 mainForm ,线程的消息循环将终止。

适用于