System.Windows.Forms.ProgressBar.KeyPress Event

Occurs when the user presses a key while the control has focus.

Syntax

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
[System.ComponentModel.Browsable(false)]
public event KeyPressEventHandler KeyPress

Remarks

The System.Windows.Forms.ProgressBar control cannot receive keyboard focus, so it never raises the ProgressBar.KeyPress event.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0