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.
Windowsがメッセージを処理しているときに例外が発生した場合、どうすればそれをキャッチできますか?キーダウンイベントハンドラーで例外をスローすると、以下のコードがクラッシュします。
try{ WindowsNative.SendMessage(form.Handle, WM_KEYDOWN, KeyValue, 0); }catch{}