Connecting Tech Pros Worldwide Forums | Help | Site Map

how to trap a line in C#,its urgent.

Newbie
 
Join Date: Jan 2008
Posts: 3
#1: Feb 27 '08
Hello Friends,

I am a software developer and i am unable to solve this problem,so plz help me out.

I have drawn lines on the picture box..
Now My Problem is how to trap those lines as i move the mouse cursor onto those line,trapping means -- i should be able to capture those points or coordinates of the line.

Thanking You All.
Latha.

Shashi Sadasivan's Avatar
Moderator
 
Join Date: Aug 2007
Location: Brisbane, Australia
Posts: 1,414
#2: Feb 27 '08

re: how to trap a line in C#,its urgent.


I am not sure how you would handle this by manipulating pixels and the image..
but you would have to implement the mouse move event, and if the mouse pointer points on the top of the line you are trying to trap, then raise a new event.
Reply