GroupBox.KeyPress 事件

定義

發生於 GroupBox 控制項具有焦點 (Focus),且使用者按下按鍵時。Occurs when the user presses a key while the GroupBox control has focus.

public:
 event System::Windows::Forms::KeyPressEventHandler ^ KeyPress;
[System.ComponentModel.Browsable(false)]
public event System.Windows.Forms.KeyPressEventHandler KeyPress;
member this.KeyPress : System.Windows.Forms.KeyPressEventHandler 
Public Custom Event KeyPress As KeyPressEventHandler 
屬性

備註

由於 @no__t 0 控制項無法取得焦點,因此永遠不會引發此事件。Because a GroupBox control cannot get focus, this event is never raised.

適用於