How to view / control which events are fired from controls on the user interface

I am creating a GUI using winforms in C #, all controls have a lot of events. I would like to know which of these events quit and when. One way is to place debug instructions for each of the event handlers, but this will take too much work. Is there a way to do this in Visual Studio 2008/2010 or are there any tools that might help?

+5
source share
4 answers

Managed Spy has the ability to log all events of the selected control. See in this article where you can read about this tool and download it.

+3
source

A runtime flow (developed by me) with the monitoring filter "Module == System.Windows.Forms.dll && Function == On *" will show which events are fired for all winforms controls.

+3
source

, Spy ++ (\ Common7\Tools\Spyxx.exe), Windows, .

.net-...

+1

You can write a logging class that subscribes to these events and write the event plus the timestamp to the log file.

It still requires you to write code, but it does not depend on your production code and should not affect it in any way.

0
source

All Articles