The GDI+ FAQ has an article on this.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"gana" <ga**@discussions.microsoft.com> wrote in message
news:55**********************************@microsof t.com...
Hello,
I'm drawing a segmented lines to a graphics object. I want to test for
each mouseclick event it should check whether the cursor is on the line.
If so it should select the entire line.
I'm createing a GraphicsPath object. Then adding each segments of the line
to this path. Then checking path.IsVisible agains the cursor point. But
this is not working.
Please help me to d this.
Thanks and Regards,
--
Gana