Control.InvokeGotFocus(Control, EventArgs) 方法

定义

为指定的控件引发 GotFocus 事件。Raises the GotFocus event for the specified control.

protected:
 void InvokeGotFocus(System::Windows::Forms::Control ^ toInvoke, EventArgs ^ e);
protected void InvokeGotFocus (System.Windows.Forms.Control toInvoke, EventArgs e);
member this.InvokeGotFocus : System.Windows.Forms.Control * EventArgs -> unit
Protected Sub InvokeGotFocus (toInvoke As Control, e As EventArgs)

参数

toInvoke
Control

要将事件分配到的 ControlThe Control to assign the event to.

e
EventArgs

包含事件数据的 EventArgsAn EventArgs that contains the event data.

适用于

另请参阅