This documentation is archived and is not being maintained.

Control.GetTopLevel Method

Determines if the control is a top-level control.

[Visual Basic]
Protected Function GetTopLevel() As Boolean
protected bool GetTopLevel();
protected: bool GetTopLevel();
protected function GetTopLevel() : Boolean;

Return Value

true if the control is a top-level control; otherwise, false.


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

Control Class | Control Members | System.Windows.Forms Namespace | SetTopLevel