共用方式為


Form.SizeGripStyle 屬性

定義

取得或設定可調整大小的底框樣式,以顯示在表單的右下角。

public:
 property System::Windows::Forms::SizeGripStyle SizeGripStyle { System::Windows::Forms::SizeGripStyle get(); void set(System::Windows::Forms::SizeGripStyle value); };
public System.Windows.Forms.SizeGripStyle SizeGripStyle { get; set; }
member this.SizeGripStyle : System.Windows.Forms.SizeGripStyle with get, set
Public Property SizeGripStyle As SizeGripStyle

屬性值

SizeGripStyle

SizeGripStyle,代表所要顯示的大小底框樣式。 預設值為 Auto

例外狀況

指定的值超過有效值的範圍。

範例

下列範例示範如何在 無法調整大小時 Form 隱藏 的大小底框 Form

private:
   void ShowMyDialogBox()
   {
      Form^ myForm = gcnew Form;
      myForm->Text = "My Form";
      myForm->SetBounds( 20, 20, 300, 300 );
      myForm->FormBorderStyle = ::FormBorderStyle::FixedDialog;

      // Display the form with no grip since form is not resizable.
      myForm->SizeGripStyle = ::SizeGripStyle::Hide;
      myForm->MinimizeBox = false;
      myForm->MaximizeBox = false;
      myForm->ShowDialog();
   }
private void ShowMyDialogBox()
{
    Form myForm = new Form();
    myForm.Text = "My Form";
    myForm.SetBounds(20,20,300,300);
    myForm.FormBorderStyle = FormBorderStyle.FixedDialog;
    
    // Display the form with no grip since form is not resizable.
    myForm.SizeGripStyle = SizeGripStyle.Hide;

    myForm.MinimizeBox = false;
    myForm.MaximizeBox = false;
    myForm.ShowDialog();
}
Private Sub ShowMyDialogBox()
    Dim myForm As New Form()
    myForm.Text = "My Form"
    myForm.SetBounds(20, 20, 300, 300)
    myForm.FormBorderStyle = FormBorderStyle.FixedDialog

    ' Display the form with no grip since form is not resizable.
    myForm.SizeGripStyle = SizeGripStyle.Hide

    myForm.MinimizeBox = False
    myForm.MaximizeBox = False
    myForm.ShowDialog()
End Sub

備註

此屬性可讓您判斷表單上顯示調整大小底框的時機。 您可以設定此屬性來顯示調整大小底框,或根據 屬性的 FormBorderStyle 設定自動顯示它。

適用於

另請參閱