Form.ActivateMdiChild(Form) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
激活窗体的 MDI 子级。
protected:
void ActivateMdiChild(System::Windows::Forms::Form ^ form);
protected void ActivateMdiChild(System.Windows.Forms.Form form);
protected void ActivateMdiChild(System.Windows.Forms.Form? form);
member this.ActivateMdiChild : System.Windows.Forms.Form -> unit
Protected Sub ActivateMdiChild (form As Form)
参数
- form
- Form
要激活的子窗体。
注解
form如果参数已是活动的 MDI 子窗体,则ActivateMdiChild该方法只会返回。 如果 form 不是 null,则将它设置为活动的 MDI 子窗体。
无论参数是否 form 为 null 参数, ActivateMdiChild 都 MdiChildActivate 引发事件。