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..
 
Back
Top