Sets the persisted state of the control. This should either be null, obtained from getOcxState, or read from a resource. The value of this property will be used after the control is created but before it is shown. Computes the persisted state of the underlying ActiveX control and returns it in the encapsulated State object. If the control has been modified since it was last saved to a persisted state, it will be asked to save itself.
[Visual Basic] Overridable Public Property OcxState As AxHost.State [C#] public AxHost.State OcxState {virtual get; virtual set;} [C++] public: __property virtual AxHost.State* get_OcxState(); public: __property virtual void set_OcxState(AxHost.State*); [JScript] public function get OcxState() : AxHost.State; public function set OcxState(AxHost.State);
an object which encapsulates the persisted state of the control.
Exception Type | Condition |
---|---|
SystemException | if the control has already been activated and setting the persisted state would never be used. |
AxHost Class | AxHost Members | System.WinForms Namespace | getOcxState | AxHost.State | setOcxState