ProgressBar.KeyPress ProgressBar.KeyPress ProgressBar.KeyPress ProgressBar.KeyPress Event

定义

在控件有焦点的情况下用户按下键时发生。Occurs when the user presses a key while the 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 
属性

注解

控件不能接收键盘焦点, 因此永远不会KeyPress引发事件。 ProgressBarThe ProgressBar control cannot receive keyboard focus, so it never raises the KeyPress event.

适用于