AxHost::OcxState Property
.NET Framework (current version)
Gets or sets the persisted state of the ActiveX control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property AxHost::State^ OcxState { AxHost::State^ get(); void set(AxHost::State^ value); }
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
Available since 1.1
Show: