Launching Event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to launch an MouseDown event for a control. How can I do that

Thanx in advantage...
 
Hi Hector,
If it is your control you can call OnMouseDown method. It will fire the
event for you. If it is not you can either use reflection to call
OnMouseDown or send say WM_LBUTTONDOWN message to the control.

If you want to raise Click event, though, you can use Control.InvokeOnClick
method (for example you can use the method provided by your form) specifing
the control you want to fire the event..
 

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

Back
Top