Form.ActivateMdiChild(Form) Form.ActivateMdiChild(Form) Form.ActivateMdiChild(Form) Method

定义

激活窗体的 MDI 子级。Activates the MDI child of a 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

参数

form
Form Form Form

要激活的子窗体。The child form to activate.

注解

如果 @no__t 参数已经是活动的 MDI 子窗体,则 @no__t 1 方法只返回。If the form parameter is already the active MDI child form, then the ActivateMdiChild method simply returns. 如果 formnull,则将其设置为活动的 MDI 子窗体。If form is not null, then it is set to be the active MDI child form.

@No__t 参数是否 @no__t 为-1,ActivateMdiChild 将引发 @no__t 3 事件。Whether the form parameter is null or not, ActivateMdiChild raises the MdiChildActivate event.

适用于

另请参阅