System.Windows.Forms.KeyEventArgs.SuppressKeyPress Property

Gets or sets a value indicating whether the key event should be passed on to the underlying control.

Syntax

public bool SuppressKeyPress { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can assign true to this property in an event handler such as Control.KeyDown in order to prevent user input.

Setting KeyEventArgs.SuppressKeyPress to true also sets KeyEventArgs.Handled to true.

Requirements

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