ACAT.Lib.Core.Utility.User32Interop.MapVirtualKey C# (CSharp) Метод

MapVirtualKey() приватный Метод

private MapVirtualKey ( int uCode, int uMapType ) : int
uCode int
uMapType int
Результат int
        public static extern int MapVirtualKey(int uCode, int uMapType);

Usage Example

Пример #1
0
 /// <summary>
 /// Returns if the specified key is printable or not
 /// </summary>
 /// <param name="key">key to check</param>
 /// <returns>true if it is</returns>
 public static bool IsPrintable(Keys key)
 {
     return(key == Keys.Enter || !char.IsControl((char)User32Interop.MapVirtualKey((int)key, 2)));
 }