AxHost.BeginInit AxHost.BeginInit AxHost.BeginInit AxHost.BeginInit Method

定义

开始 ActiveX 控件的初始化。Begins the initialization of the ActiveX control.

public:
 virtual void BeginInit();
public void BeginInit ();
abstract member BeginInit : unit -> unit
override this.BeginInit : unit -> unit
Public Sub BeginInit ()

实现

注解

通常,设计环境使用此方法来开始初始化在窗体上使用或由另一个组件使用的组件。Design environments typically use this method to start the initialization of a component that is used on a form or used by another component. EndInit方法结束初始化。The EndInit method ends the initialization. BeginInit使用和EndInit方法可防止控件在完全初始化之前被使用。Using the BeginInit and EndInit methods prevents the control from being used before it is fully initialized. 初始化发生在运行时。The initialization occurs at run time.

适用于

另请参阅