Export (0) Print
Expand All
Expand Minimize

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

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 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 .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft