SearchControl.OnPreviewKeyDown Method
Provides class handling for receiving key down events on the control or any element derived from this control.
Namespace: Microsoft.VisualStudio.PlatformUI
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Protected Overrides Sub OnPreviewKeyDown ( _
e As KeyEventArgs _
)
protected override void OnPreviewKeyDown(
KeyEventArgs e
)
protected:
virtual void OnPreviewKeyDown(
KeyEventArgs^ e
) override
abstract OnPreviewKeyDown :
e:KeyEventArgs -> unit
override OnPreviewKeyDown :
e:KeyEventArgs -> unit
protected override function OnPreviewKeyDown(
e : KeyEventArgs
)
Parameters
e
Type: KeyEventArgsThe event data for the Key event.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.