Button 控制項 (Windows Form)

Windows Form Button 控制項可讓使用者按一下以執行動作。 Button 控制項可以顯示文字和影像。 按一下按鈕時,按鈕看起來就像被推入又釋放。

本節內容

Button 控制項概觀
說明此控制項是什麼,並說明其重要功能與屬性。

操作說明:回應 Windows Forms Button 按一下動作
說明 Windows Form 上按鈕的最基本用法。

操作說明:將 Windows Forms 中的 Button 指定為接受按鈕
說明如何指定 Button 控制項為接受按鈕,也稱為預設按鈕。

操作說明:將 Windows Forms 中的 Button 指定為取消按鈕
說明如何指定 Button 控制項為取消按鈕,每當使用者按下 ESC 鍵時就會被按下。

選取 Windows Forms Button 控制項的方法
列出選取按鈕的方法。

另請參閱 如何:使用設計 工具將 Windows Forms 按鈕指定為 [接受] 按鈕和 如何:使用設計 工具將 Windows Forms 按鈕指定為 [取消] 按鈕。

參考

Button 類別
說明這個類別,並且提供其所有成員的連結。

在 Windows Forms 上使用的控制項
提供 Windows Form 控制項的完整清單,以及其用法的資訊連結。

另請參閱 使用者輸入對話方塊 如何:關閉對話方塊並保留使用者輸入