Which events are raised for a button

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
 
A

Armin Zingler

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top