I’m having trouble within a block of code that I believe is related to a mouse click event but I cannot seem to capture the exact event within my code. I’ve used the C# debugger to step through my code and after the end of one of my events the code simply locks up.
The purpose of my post is to ask if there is any software that will watch my process and let me know the events that are firing off after I hit the F11 key and the code freezes up. I’ve tried SysInternals’ procmon.exe but that isn’t telling me which events are firing off.
Have you tried Spy++ ? It’s a tool that comes with Visual Studio (at least 2003 & 2005). On my default 2003 and 2005 installs, Spy++ is at: Start | Program Files | Microsoft Visual Studio 200X | Visual Studio Tools | Spy++
After you run Spy++, select Find Window… from the Search menu. Drag the ‘Finder Tool’ to the window or control you want to watch events on and click OK. Right-click on the item selected in the tree and select ‘Messages’. This will bring up a window that shows the messages as they hit your window of interest.
If Spy++ doesn’t get what you need, what about Managed Spy? It appears to be like Spy++ but specifically for managed code. I haven’t tried it.