Export (0) Print
Expand All

AxHost.OcxState Property

Gets or sets the persisted state of the ActiveX control.

[Visual Basic]
Public Property OcxState As AxHost.State
[C#]
public AxHost.State OcxState {get; set;}
[C++]
public: __property AxHost.State* get_OcxState();
public: __property void set_OcxState(AxHost.State*);
[JScript]
public function get OcxState() : AxHost.State;
public function set OcxState(AxHost.State);

Property Value

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

Exceptions

Exception Type Condition
Exception The ActiveX control is already loaded.

Remarks

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.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

AxHost Class | AxHost Members | System.Windows.Forms Namespace | AxHost.State | GetOcx

Show:
© 2014 Microsoft