By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,420 Members | 1,430 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,420 IT Pros & Developers. It's quick & easy.

Launching Event

P: n/a

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

Thanx in advantage...
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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..
--
HTH
B\rgds
100

"Hector Martinez" <an*******@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com...


I need to launch an MouseDown event for a control. How can I do that?
Thanx in advantage...

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.