This documentation is archived and is not being maintained.

Form.ProcessDialogKey Method

Processes a dialog box key.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

protected override bool ProcessDialogKey (
	Keys keyData
)
protected boolean ProcessDialogKey (
	Keys keyData
)
protected override function ProcessDialogKey (
	keyData : Keys
) : boolean
Not applicable.

Parameters

keyData

One of the Keys values that represents the key to process.

Return Value

true if the keystroke was processed and consumed by the control; otherwise, false to allow further processing.

The ProcessDialogKey method overrides the base ContainerControl.ProcessDialogKey implementation to provide additional handling of the RETURN and ESCAPE keys in dialog boxes. The method performs no processing on keystrokes that include the ALT or CONTROL modifiers.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0
Show: