.NET Framework 4.6 and 4.5
Brings the control to the front of the z-order.
public void BringToFront()
The control is moved to the front of the z-order. If the control is a child of another control, the child control is moved to the front of the z-order.
does not make a control a top-level control, and it does not raise the BringToFront event. Paint
The following code example ensures that a
is visible by calling its Label method. This example requires that you have a BringToFront with a Form named Panel panel1, and a named Label label1.
private void MakeLabelVisible()
/* If the panel contains label1, bring it
* to the front to make sure it is visible. */
Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
.NET Framework Client Profile
Supported in: 4, 3.5 SP1
( 1500 characters remaining)
Thank you for your feedback