Partager via


DialogBase.ProcessDialogKey Method

Verifies whether keys (such as TAB, ESCAPE, and RETURN) should be processed for the dialog box.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)

Syntax

'Declaration
Protected Overrides Function ProcessDialogKey ( _
    keyData As Keys _
) As Boolean
protected override bool ProcessDialogKey(
    Keys keyData
)
protected:
virtual bool ProcessDialogKey(
    Keys keyData
) override
abstract ProcessDialogKey : 
        keyData:Keys -> bool  
override ProcessDialogKey : 
        keyData:Keys -> bool
protected override function ProcessDialogKey(
    keyData : Keys
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the key should be processed; otherwise, false.

Remarks

This method makes sure that only critical exceptions are exposed to the base class. Any exceptions that reach the base class open the WinForms Unhandled Exception dialog box.

.NET Framework Security

See Also

Reference

DialogBase Class

Microsoft.VisualStudio.Modeling.Shell Namespace