ProgressBar.KeyDown ProgressBar.KeyDown ProgressBar.KeyDown ProgressBar.KeyDown Event

定义

在控件有焦点的情况下用户按下键时发生。Occurs when the user presses a key while the control has focus.

public:
 event System::Windows::Forms::KeyEventHandler ^ KeyDown;
[System.ComponentModel.Browsable(false)]
public event System.Windows.Forms.KeyEventHandler KeyDown;
member this.KeyDown : System.Windows.Forms.KeyEventHandler 
Public Custom Event KeyDown As KeyEventHandler 
属性

注解

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

适用于