Click here to Skip to main content
15,879,613 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
I have created my own class names Box.cs. Now I want to borrow the mouse Event which I see in most controls found in .Net and apply it also to my box so that If I click my box an event is triggered
Posted

1 solution

Which mouse event do you want to handle? There are loads: Mouse Down, Mouse up, Mouse move, ...
Is your class visible (ie derived from a form, or other control? If not, then it doesn't get mouse events!

More details, please!

 
Share this answer
 


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900