Which events are raised for a button

  • Thread starter Thread starter Peter Sulikowski
  • Start date Start date
P

Peter Sulikowski

If I have a button for example on a form, is there a way that I can spy on
which .Net events etc are being raised as I move over the button with the
cursor, click on the button, leave input focus etc. The documentation tells
me what they are but often I find I am trapping the wrong event, or that it
didn't behave as expected.

What I want is, for example, to move my cursor over a button and 'see' in
another window that mouseenter event be fired, see the mouseleave, click,
mouseup, hover ... etc. I want to same utility to work for Forms, Scrollbars
etc. If there such a tool?

I have looked at "Spy" which comes with .Net 2003 but it seems to be for
Windows messages, not .Net events.

Pete
 
Peter Sulikowski said:
If I have a button for example on a form, is there a way that I can
spy on which .Net events etc are being raised as I move over the
button with the cursor, click on the button, leave input focus etc.
The documentation tells me what they are but often I find I am
trapping the wrong event, or that it didn't behave as expected.

What I want is, for example, to move my cursor over a button and
'see' in another window that mouseenter event be fired, see the
mouseleave, click, mouseup, hover ... etc. I want to same utility to
work for Forms, Scrollbars etc. If there such a tool?

I have looked at "Spy" which comes with .Net 2003 but it seems to be
for Windows messages, not .Net events.

..Net events - at least Mouseenter and so on - are fired when receiving
windows mesages.
 
Back
Top