Xceed Grid for WinForms v4.3 Documentation
ProcessDialogKey Method (WinButton)


Xceed.Editors.v2.6 Assembly > Xceed.Editors Namespace > WinButton Class : ProcessDialogKey Method
One of the System.Windows.Forms.Keys values that represents the key to process.
Processes a dialog key.
Syntax
'Declaration
 
Protected Overrides Function ProcessDialogKey( _

   ByVal keyData As Keys _

) As Boolean
'Usage
 
Dim instance As WinButton

Dim keyData As Keys

Dim value As Boolean

 

value = instance.ProcessDialogKey(keyData)
protected override bool ProcessDialogKey( 

   Keys keyData

)

Parameters

keyData
One of the System.Windows.Forms.Keys values that represents the key to process.

Return Value

true if the key was processed by the control; false otherwise.
Remarks

This method is called during message preprocessing to handle dialog characters, such as TAB, RETURN, ESCAPE, and arrow keys. This method is called only if the System.Windows.Forms.Control.IsInputKey(System.Windows.Forms.Keys) method indicates that the control is not processing the key. The ProcessDialogKey simply sends the character to the parent's ProcessDialogKey method, or returns false if the control has no parent.

When overriding the ProcessDialogKey method in a derived class, a control should return true to indicate that it has processed the key. For keys that are not processed by the control, the result of calling the base class's ProcessDialogChar method should be returned.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WinButton Class
WinButton Members
Base Implementation in ProcessDialogKey