OcxState Property

AxHost.OcxState Property

 

Gets or sets the persisted state of the ActiveX control.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

[BrowsableAttribute(false)]
public AxHost.State OcxState { get; set; }

Property Value

Type: System.Windows.Forms.AxHost.State

A AxHost.State that represents the persisted state of the ActiveX control.

Exception Condition
Exception

The ActiveX control is already loaded.

The value of the OcxState property is used after the control is created but before it is shown. The persisted state of the underlying ActiveX control is returned in the AxHost.State.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft