System.Windows.Forms.Control.SetTopLevel Method

Sets the control as the top-level control.

Syntax

protected void SetTopLevel (bool value)

Parameters

value
true to set the control as the top-level control; otherwise, false.

Remarks

If you call the Control.SetTopLevel(bool) method of a System.Windows.Forms.Form and pass in a value of false, the form will not be visible until you call Control.SetTopLevel(bool) again, passing in a value of true.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0