Form.OnCreateControl Form.OnCreateControl Form.OnCreateControl Form.OnCreateControl Method

定义

引发 CreateControl 事件。Raises the CreateControl event.

protected:
 override void OnCreateControl();
protected override void OnCreateControl ();
override this.OnCreateControl : unit -> unit
Protected Overrides Sub OnCreateControl ()

注解

引发事件时,将通过委托调用事件处理程序。Raising an event invokes the event handler through a delegate. 有关详细信息, 请参阅处理和引发事件For more information, see Handling and Raising Events.

继承者说明

当在OnCreateControl()派生类中重写时,请确保调用基类的OnCreateControl()方法。When overriding OnCreateControl() in a derived class, be sure to call the base class's OnCreateControl() method.

适用于