FormBorderStyle 열거형

정의

폼의 테두리 스타일을 지정합니다.

public enum class FormBorderStyle
[System.Runtime.InteropServices.ComVisible(true)]
public enum FormBorderStyle
public enum FormBorderStyle
[<System.Runtime.InteropServices.ComVisible(true)>]
type FormBorderStyle = 
type FormBorderStyle = 
Public Enum FormBorderStyle
상속
FormBorderStyle
특성

필드

Fixed3D 2

고정된 3차원 테두리입니다.

FixedDialog 3

고정된 대화 상자 스타일의 굵은 테두리입니다.

FixedSingle 1

고정된 단일 선 테두리입니다.

FixedToolWindow 5

크기를 조정할 수 없는 도구 창 테두리입니다. 사용자가 Alt+Tab을 누를 때 나타나는 작업 표시줄이나 창에는 도구 창이 나타나지 않습니다. FixedToolWindow를 지정하는 폼은 대개 작업 표시줄에 나타나지 않지만 ShowInTaskbar 속성의 기본값이 false이기 때문에 이 속성이 true로 설정되었는지 확인해야 합니다.

None 0

테두리가 없습니다.

Sizable 4

크기를 조정할 수 있는 테두리입니다.

SizableToolWindow 6

크기를 조정할 수 있는 도구 창 테두리입니다. 사용자가 Alt+Tab을 누를 때 나타나는 작업 표시줄이나 창에는 도구 창이 나타나지 않습니다.

예제

이 예제에서는 양식 테두리 스타일을 로 Fixed3d 변경하고 레이블을 사용하여 테두리의 정보를 표시합니다. 이 예제에서는 라는 를 Form1이미 만들었다고 가정합니다Form.

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

설명

이 열거는 Form 클래스에서 사용됩니다. 폼의 다양한 스타일을 나타냅니다. 기본 스타일은 입니다 Sizable.

적용 대상

추가 정보