开发者

C# - How to watch event queue (windows forms events)

I have a Windows Forms program that fires lots of events (from an API that I have no access to its code). I have to do some processing in each event fired, I understand tha开发者_运维技巧t all events are queued in an "event queue". How can I watch the event queue content? I want to watch all the events queued, only in debug mode, I don't need to do any process with the event queue, just to understand what is really happening when process all events fired by that creepy API. Is there an option for do that in the IDE?


Normal events are not queued.

You may be talking about Windows messages; if so, use Spy++.

You can also find the functions that raise the events (using Reflector), then add breakpoints to them by clicking Debug, New Breakpoint, Break At Function.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜