Can you intercept click event?

S

Seeker

Hello,

I am trying to control tooltips in my winform. I want to only turn them on
when the user chooses a menu item called WhatThe. When they do I change the
form's cursor to Cursors.Help and activate the tooltip. The problem is I
don't want the user to actually be able to interact with the form while in
this state. If they click the mouse I want to intercept that event and set
the form's cursor back to the default and deactivate the tooltip.

Is there a way I can intercept all click and double click events on the
winform? And if the cursor is currently set to Help cancel the event
otherwise forward it on to what ever they were clicking on? I would also
want to treat the keyboard the same way (if in help mode any keyboard event
would take it out of help mode).

thanks,
Scott
 

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