Bagikan melalui


IWpfKeyboardTrackingService.BeginTrackingKeyboard Method

Starts tracking the keyboard.

Namespace:  Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

Syntax

'Declaration
Sub BeginTrackingKeyboard ( _
    handle As IntPtr, _
    messagesToCapture As IList(Of UInteger) _
)
void BeginTrackingKeyboard(
    IntPtr handle,
    IList<uint> messagesToCapture
)
void BeginTrackingKeyboard(
    IntPtr handle, 
    IList<unsigned int>^ messagesToCapture
)
abstract BeginTrackingKeyboard : 
        handle:IntPtr * 
        messagesToCapture:IList<uint32> -> unit 
function BeginTrackingKeyboard(
    handle : IntPtr, 
    messagesToCapture : IList<uint>
)

Parameters

  • handle
    Type: System.IntPtr
    A valid Win32 window handle (HWND) to which messages should be redirected

Remarks

After this method has been called, all keyboard events will be routed to WPF first, before the host application (for example, Visual Studio) sees them.

.NET Framework Security

See Also

Reference

IWpfKeyboardTrackingService Interface

Microsoft.VisualStudio.Language.Intellisense Namespace