[DllImport("user32.dll")]
static extern short VkKeyScan(char ch);
static public Key ResolveKey(char charToResolve)
{
return KeyInterop.KeyFromVirtualKey(VkKeyScan(charToResolve));
}
More Related Contents:
- How to enumerate an enum
- Enum “Inheritance”
- Get Enum from Description attribute [duplicate]
- Anyone know a good workaround for the lack of an enum generic constraint?
- How to loop through all enum values in C#? [duplicate]
- Most common C# bitwise operations on enums
- Enum type constraints in C# [duplicate]
- Get enum from enum attribute
- Why switch for enum accepts implicit conversion to 0 but no for any other integer?
- How do I convert an enum to a list in C#? [duplicate]
- Why enums require an explicit cast to int type?
- How to Compare Flags in C#?
- Parse string to enum type
- What is the default value for enum variable?
- How to prevent duplicate values in enum?
- .NET Enumeration allows comma in the last field
- C# int, Int32 and enums
- Binding an enum to a WinForms combo box, and then setting it
- Total number of items defined in an enum
- How to get next (or previous) enum value in C#
- Choosing the default value of an Enum type without having to change values
- Taking input from a joystick with C# .NET
- How to add extension methods to Enums
- Why Enum’s HasFlag method need boxing?
- Can you have multiple enum values for the same integer? [duplicate]
- Creating a ZIP archive in memory using System.IO.Compression
- Purpose of Activator.CreateInstance with example?
- Understanding WCF Windows Authentication
- Providing input/subcommands to a command (cli) executed with SSH.NET SshClient.RunCommand
- Is IDisposable.Dispose() called automatically? [duplicate]