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{}