NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Control.ProcessDialogChar

Processes a dialog character. This method is called during message pre-processing to handle dialog characters, such as control mnemonics. This method is called only if the isInputChar() method indicates that the control isn't interested in the character. processDialogChar() simply sends the character to the parent's processDialogChar() method, or returns false if the control has no parent. The Form class overrides this method to perform actual processing of dialog characters. When overriding processDialogChar(), a control should return true to indicate that it has processed the character. For characters that aren't processed by the control, the result of "base.processDialogChar()" should be returned. Controls will seldom, if ever, need to override this method.

[Visual Basic]
Overridable Protected Function ProcessDialogChar( _
   ByVal charCode As Char _
) As Boolean
[C#]
protected virtual bool ProcessDialogChar(
   char charCode
);
[C++]
protected: virtual bool ProcessDialogChar(
   __wchar_t charCode
);
[JScript]
protected function ProcessDialogChar(
   charCode : Char
) : Boolean;

Parameters

charCode
character to pre-process.

Return Value

true to consume the character, false to allow further processing.

See Also

Control Class | Control Members | System.WinForms Namespace