Especifica los estilos de borde de un formulario.
Espacio de nombres: System.Windows.Forms
Ensamblado: System.Windows.Forms (en system.windows.forms.dll)

Sintaxis
Visual Basic (Declaración)
<ComVisibleAttribute(True)> _
Public Enumeration FormBorderStyle
Dim instance As FormBorderStyle
[ComVisibleAttribute(true)]
public enum FormBorderStyle
[ComVisibleAttribute(true)]
public enum class FormBorderStyle
/** @attribute ComVisibleAttribute(true) */
public enum FormBorderStyle
ComVisibleAttribute(true)
public enum FormBorderStyle

Comentarios
La clase Form utiliza esta enumeración. Representa los diferentes estilos del formulario. El estilo predeterminado es Sizable.
Nota de la plataforma Windows Mobile 2003 para Pocket PC, Windows Mobile 2003 para Smartphone, Windows CE:
En aplicaciones Smartphone, no establezca el estilo de borde de formulario en None en un formulario secundario porque será inaccesible.

Ejemplo
En este ejemplo, el estilo de borde del formulario se cambia a Fixed3d y se muestra la información del borde mediante una etiqueta. En este ejemplo se supone que ya se ha creado un Form denominado Form1.
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
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:
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.set_Location(new System.Drawing.Point(80, 80));
label1.set_Name("label1");
label1.set_Size(new System.Drawing.Size(132, 80));
label1.set_Text("Start Position Information");
this.get_Controls().Add(label1);
// Changes the border to Fixed3D.
set_FormBorderStyle(get_FormBorderStyle().Fixed3D);
// Displays the border information.
label1.set_Text("The border is " + get_FormBorderStyle());
} //InitMyForm

Plataformas
Windows 98, Windows 2000 Service Pack 4, Windows CE, Windows Millennium, Windows Mobile para Pocket PC, Windows Mobile para Smartphone, Windows Server 2003, Windows XP Media Center, Windows XP Professional x64, Windows XP SP2, Windows XP Starter
Microsoft .NET Framework 3.0 es compatible con Windows Vista, Microsoft Windows XP SP2 y Windows Server 2003 SP1.

Información de versión
.NET Framework
Compatible con: 3.0, 2.0, 1.1, 1.0
.NET Compact Framework
Compatible con: 2.0, 1.0

Vea también