How do I create an automatic UI event trace in winforms?

后端 未结 2 439
独厮守ぢ
独厮守ぢ 2021-01-27 04:45

I need to take an existing winforms application and drop into an event tracing mode, with hopefully as little friction as possible.

I w

2条回答
  •  悲哀的现实
    2021-01-27 04:59

    How many different control types do you have? If you only have a handful of control types that you are looking to trace with, it may be worthwhile to subclass them and do a find and replace on your project to change them to your subclass. This should only take a minute or two.

    In your subclassed controls, you could override a small section of the methods, adding tracing before calling the base method.

提交回复
热议问题