NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

AxHost.ContainingForm

Returns this control's logicaly containing form. At design time this is always the form being designed. At runtime it is either the form set with setContainingForm or, by default, the parent form. Sets the form which is the logical container of this control. By default, the parent form performs that function. It is however possible for another form higher in the parent chain to serve in that role. The logical container of this control determines the set of logical sibling control. In general this property exists only to enable some speficic behaviours of ActiveX controls and should in general not be set by the user.

[Visual Basic]
Overridable Public Property ContainingForm As Form
[C#]
public Form ContainingForm {virtual get; virtual set;}
[C++]
public: __property virtual Form* get_ContainingForm();
public: __property virtual void set_ContainingForm(Form*);
[JScript]
public function get ContainingForm() : Form;
public function set ContainingForm(Form);

Property Value

the control's containing form.

See Also

AxHost Class | AxHost Members | System.WinForms Namespace