This documentation is archived and is not being maintained.

Control.GetContainerControl Method

Returns the next ContainerControl up the control's chain of parent controls.

[Visual Basic]
Public Function GetContainerControl() As IContainerControl
public IContainerControl GetContainerControl();
public: IContainerControl* GetContainerControl();
public function GetContainerControl() : IContainerControl;

Return Value

An IContainerControl object, that represents the parent of the Control.


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: 

See Also

Control Class | Control Members | System.Windows.Forms Namespace | Parent | ContainerControl | IContainerControl