Control.CanRaiseEvents 属性

定义

确定是否可以在控件上引发事件。Determines if events can be raised on the control.

protected:
 virtual property bool CanRaiseEvents { bool get(); };
protected override bool CanRaiseEvents { get; }
member this.CanRaiseEvents : bool
Protected Overrides ReadOnly Property CanRaiseEvents As Boolean

属性值

如果控件是作为其事件未被冻结的 ActiveX 控件承载的,则为 true;否则为 falsetrue if the control is hosted as an ActiveX control whose events are not frozen; otherwise, false.

注解

如果此控件作为 ActiveX 控件承载,则此属性将返回 false 如果 ActiveX 控件的事件已冻结。If this control is being hosted as an ActiveX control, this property will return false if the ActiveX control has its events frozen.

适用于