FormBorderStyle
FormBorderStyle
FormBorderStyle
FormBorderStyle
Enum
Definición
Especifica los estilos de borde de un formulario.Specifies the border styles for a form.
public enum class FormBorderStyle
[System.Runtime.InteropServices.ComVisible(true)]
public enum FormBorderStyle
type FormBorderStyle =
Public Enum FormBorderStyle
- Herencia
- Atributos
Campos
Fixed3D Fixed3D Fixed3D Fixed3D | 2 | Borde tridimensional fijo.A fixed, three-dimensional border. |
FixedDialog FixedDialog FixedDialog FixedDialog | 3 | Borde de estilo de cuadro de diálogo fijo y de ancho grueso.A thick, fixed dialog-style border. |
FixedSingle FixedSingle FixedSingle FixedSingle | 1 | Borde fijo de una sola línea.A fixed, single-line border. |
FixedToolWindow FixedToolWindow FixedToolWindow FixedToolWindow | 5 | Borde de ventana de herramientas de tamaño fijo.A tool window border that is not resizable. Una ventana de herramientas no aparece en la barra de tareas ni en la ventana que aparece cuando el usuario presiona ALT+TAB.A tool window does not appear in the taskbar or in the window that appears when the user presses ALT+TAB. Aunque los formularios que especifican FixedToolWindow normalmente no se muestran en la barra de tareas, debe asegurarse también de que la propiedad ShowInTaskbar se establece en |
None None None None | 0 | Sin borde.No border. |
Sizable Sizable Sizable Sizable | 4 | Borde de tamaño variable.A resizable border. |
SizableToolWindow SizableToolWindow SizableToolWindow SizableToolWindow | 6 | Borde de ventana de herramientas de tamaño variable.A resizable tool window border. Una ventana de herramientas no aparece en la barra de tareas ni en la ventana que aparece cuando el usuario presiona ALT+TAB.A tool window does not appear in the taskbar or in the window that appears when the user presses ALT+TAB. |
Ejemplos
En este ejemplo, cambia el estilo de borde del formulario a Fixed3d
y mostrar la información del borde con una etiqueta.In this example, you change the form border style to Fixed3d
and display the border's information using a label. En este ejemplo se da por supuesto que ya ha creado un Form denominado Form1
.This example assumes that you have already created a Form named Form1
.
public:
void InitMyForm()
{
// Adds a label to the form.
Label^ label1 = gcnew Label;
label1->Location = System::Drawing::Point( 80, 80 );
label1->Name = "label1";
label1->Size = System::Drawing::Size( 132, 80 );
label1->Text = "Start Position Information";
this->Controls->Add( label1 );
// Changes the border to Fixed3D.
FormBorderStyle = ::FormBorderStyle::Fixed3D;
// Displays the border information.
label1->Text = String::Format( "The border is {0}", FormBorderStyle );
}
public void InitMyForm()
{
// Adds a label to the form.
Label label1 = new Label();
label1.Location = new System.Drawing.Point(80,80);
label1.Name = "label1";
label1.Size = new System.Drawing.Size(132,80);
label1.Text = "Start Position Information";
this.Controls.Add(label1);
// Changes the border to Fixed3D.
FormBorderStyle = FormBorderStyle.Fixed3D;
// Displays the border information.
label1.Text = "The border is " + FormBorderStyle;
}
Public Sub InitMyForm()
' Adds a label to the form.
Dim label1 As New Label()
label1.Location = New System.Drawing.Point(80, 80)
label1.Name = "label1"
label1.Size = New System.Drawing.Size(132, 80)
label1.Text = "Start Position Information"
Me.Controls.Add(label1)
' Changes the border to Fixed3D.
FormBorderStyle = FormBorderStyle.Fixed3D
' Displays the border information.
label1.Text = "The border is " + FormBorderStyle
End Sub 'InitMyForm
Comentarios
La clase Form utiliza esta enumeración.This enumeration is used by the Form class. Representa los diferentes estilos del formulario.It represents the different styles of the form. El estilo predeterminado es Sizable
.The default style is Sizable
.
Se aplica a
Consulte también:
Comentarios
Nos gustaría conocer su opinión. Elija el tipo que desea proporcionar:
Nuestro sistema de comentarios está basado en los problemas de GitHub. Más información en nuestro blog.
Cargando comentarios...