Control.SetTopLevel(Boolean) Método
Definición
Establece el control como el control de nivel superior.Sets the control as the top-level control.
protected:
void SetTopLevel(bool value);
protected void SetTopLevel (bool value);
member this.SetTopLevel : bool -> unit
Protected Sub SetTopLevel (value As Boolean)
Parámetros
- value
- Boolean
Es true
para establecer el control como el control de nivel superior; en caso contrario, es false
.true
to set the control as the top-level control; otherwise, false
.
Excepciones
El parámetro value
está establecido en true
y el control es un control ActiveX.The value
parameter is set to true
and the control is an ActiveX control.
El valor devuelto por GetTopLevel() no es igual al parámetro value
, y la propiedad Parent no es null
.The GetTopLevel() return value is not equal to the value
parameter and the Parent property is not null
.
Comentarios
Si llama al SetTopLevel método de Form y pasa un valor de false
, el formulario no estará visible hasta que vuelva a llamar a SetTopLevel , pasando un valor de true
.If you call the SetTopLevel method of a Form and pass in a value of false
, the form will not be visible until you call SetTopLevel again, passing in a value of true
.