skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • AI Coding Assistants
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    AI Coding Assistants

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class VirtualKeyboardNativeMethods

Inheritance
System.Object
VirtualKeyboardNativeMethods
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.VirtualKeyboard
Assembly: TelerikCommon.dll

Syntax

public static class VirtualKeyboardNativeMethods

Fields

INPUT_KEYBOARD

Declaration
public const int INPUT_KEYBOARD = 1
Field Value
System.Int32

KEYEVENTF_EXTENDEDKEY

Declaration
public const uint KEYEVENTF_EXTENDEDKEY = 1U
Field Value
System.UInt32

KEYEVENTF_KEYUP

Declaration
public const uint KEYEVENTF_KEYUP = 2U
Field Value
System.UInt32

KEYEVENTF_SCANCODE

Declaration
public const uint KEYEVENTF_SCANCODE = 8U
Field Value
System.UInt32

KEYEVENTF_UNICODE

Declaration
public const uint KEYEVENTF_UNICODE = 4U
Field Value
System.UInt32

WH_KEYBOARD_LL

Declaration
public const int WH_KEYBOARD_LL = 13
Field Value
System.Int32

Properties

KeyListeners

Declaration
public static List<IKeyPressedListener> KeyListeners { get; }
Property Value
System.Collections.Generic.List<IKeyPressedListener>

Methods

GetCharsFromKeys(Keys, Boolean, Boolean, Boolean)

Declaration
public static string GetCharsFromKeys(Keys keys, bool shift, bool alt, bool capsLock)
Parameters
System.Windows.Forms.Keys keys

System.Boolean shift

System.Boolean alt

System.Boolean capsLock

Returns
System.String

GetCharsFromVirtualKeyCode(UInt32, Boolean, Boolean, Boolean)

Declaration
public static string GetCharsFromVirtualKeyCode(uint virtualKeyCode, bool shift, bool alt, bool capsLock)
Parameters
System.UInt32 virtualKeyCode

System.Boolean shift

System.Boolean alt

System.Boolean capsLock

Returns
System.String

GetForeGroundWindowCulture()

Declaration
public static CultureInfo GetForeGroundWindowCulture()
Returns
System.Globalization.CultureInfo

GetKeyboardLayout(UInt32)

Declaration
public static IntPtr GetKeyboardLayout(uint idThread)
Parameters
System.UInt32 idThread

Returns
System.IntPtr

GetKeyboardState(Byte[])

Declaration
public static bool GetKeyboardState(byte[] lpKeyState)
Parameters
System.Byte[] lpKeyState

Returns
System.Boolean

GetKeyState(Int32)

Declaration
public static short GetKeyState(int nVirtKey)
Parameters
System.Int32 nVirtKey

Returns
System.Int16

GetWindowThreadProcessId(IntPtr, IntPtr)

Declaration
public static uint GetWindowThreadProcessId(IntPtr hWnd, IntPtr processId)
Parameters
System.IntPtr hWnd

System.IntPtr processId

Returns
System.UInt32

IsWindow(IntPtr)

Declaration
public static bool IsWindow(IntPtr hWnd)
Parameters
System.IntPtr hWnd

Returns
System.Boolean

MapVirtualKey(UInt32, UInt32)

Declaration
public static uint MapVirtualKey(uint uCode, uint uMapType)
Parameters
System.UInt32 uCode

System.UInt32 uMapType

Returns
System.UInt32

Send(IList<Int32>, Char)

Declaration
public static void Send(IList<int> modifierKeys, char symbol)
Parameters
System.Collections.Generic.IList<System.Int32> modifierKeys

System.Char symbol

Send(IList<Int32>, String)

Declaration
public static void Send(IList<int> modifierKeys, string text)
Parameters
System.Collections.Generic.IList<System.Int32> modifierKeys

System.String text

Send(List<Int32>, Int32)

Declaration
public static void Send(List<int> modifierKeys, int virtualKey)
Parameters
System.Collections.Generic.List<System.Int32> modifierKeys

System.Int32 virtualKey

SendInput(UInt32, VirtualKeyboardNativeMethods.INPUT[], Int32)

Declaration
public static uint SendInput(uint numberOfInputs, VirtualKeyboardNativeMethods.INPUT[] inputs, int sizeOfInputStructure)
Parameters
System.UInt32 numberOfInputs

VirtualKeyboardNativeMethods.INPUT[] inputs

System.Int32 sizeOfInputStructure

Returns
System.UInt32

SendToggleKey(Int32)

Declaration
public static void SendToggleKey(int virtualKey)
Parameters
System.Int32 virtualKey

ToUnicode(UInt32, UInt32, Byte[], StringBuilder, Int32, UInt32)

Declaration
public static int ToUnicode(uint virtualKeyCode, uint scanCode, byte[] keyboardState, StringBuilder receivingBuffer, int bufferSize, uint flags)
Parameters
System.UInt32 virtualKeyCode

System.UInt32 scanCode

System.Byte[] keyboardState

System.Text.StringBuilder receivingBuffer

System.Int32 bufferSize

System.UInt32 flags

Returns
System.Int32

ToUnicodeEx(UInt32, UInt32, Byte[], StringBuilder, Int32, UInt32, IntPtr)

Declaration
public static int ToUnicodeEx(uint wVirtKey, uint wScanCode, byte[] lpKeyState, StringBuilder pwszBuff, int cchBuff, uint wFlags, IntPtr dwhkl)
Parameters
System.UInt32 wVirtKey

System.UInt32 wScanCode

System.Byte[] lpKeyState

System.Text.StringBuilder pwszBuff

System.Int32 cchBuff

System.UInt32 wFlags

System.IntPtr dwhkl

Returns
System.Int32

VkKeyScan(Char)

Declaration
public static byte VkKeyScan(char ch)
Parameters
System.Char ch

Returns
System.Byte

Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.