Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in a free-hand black & white drawing program. in which drawing is on a picture box :

how can i know if the mouse came over a specific point or not ?

i'd be thankfull!
Posted
Comments
#realJSOP 17-Sep-10 4:58am    
I added more to my answer.

1 solution

Handle the MouseEnter and MouseLeave events.

EDIT ---------------

When the MouseEnter event is handled, capture the mouse so you can track it's movement within the control. When it gets to a specific point, do something. When the MouseLeave event is handled, stop capturing the mouse.
 
Share this answer
 
v2
Comments
Abdalla hammad 17-Sep-10 4:41am    
works for a single point ? , (10, 10) for example ?
Abdalla hammad 17-Sep-10 7:23am    
Thanks! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



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