This documentation is archived and is not being maintained.
Control.GetContainerControl Method
.NET Framework 1.1
Returns the next ContainerControl up the control's chain of parent controls.
[Visual Basic] Public Function GetContainerControl() As IContainerControl [C#] public IContainerControl GetContainerControl(); [C++] public: IContainerControl* GetContainerControl(); [JScript] public function GetContainerControl() : IContainerControl;
Return Value
An IContainerControl object, that represents the parent of the Control.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
.NET Framework Security:
- UIPermission for all windows to call this method. Associated enumeration: UIPermissionWindow.AllWindows
See Also
Control Class | Control Members | System.Windows.Forms Namespace | Parent | ContainerControl | IContainerControl
Show: