Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
win32呼び出しを使用してキーの押下をインターセプトすると、キーコードが作成されます。それをSystem.Windows.Forms.Keys値に変換する方法はありますか?
を使用しKeyInterop.KeyFromVirtualKey()ます。
KeyInterop.KeyFromVirtualKey()
System.Windows.Forms.Keys 列挙型の整数値は、Win32 呼び出しの整数値と一致します。
Keys keyData = (Keys)rawWin32KeyCode;