The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Control::Contains Method (Control^)
.NET Framework (current version)
Retrieves a value indicating whether the specified control is a child of the control.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Parameters
- ctl
-
Type:
System.Windows.Forms::Control^
The Control to evaluate.
Return Value
Type: System::Booleantrue if the specified control is a child of the control; otherwise, false.
The following code example ensures that a Label is visible by calling its BringToFront method. This example requires that you have a Form with a Panel named panel1, and a Label named label1.
.NET Framework
Available since 1.1
Available since 1.1
Show: