Question Selecting a drawing object

sankalpsonik

New member
Joined
Oct 12, 2017
Messages
3
Programming Experience
Beginner
Hi,

I have drawn some lines using Drawline in vb.net. I would like to select a particular line with mouse click and then move or rotate it. Please suggest
 

JohnH

VB.NET Forum Moderator
Staff member
Joined
Dec 17, 2005
Messages
15,383
Location
Norway
Programming Experience
10+
I think you should look for drawing examples using GraphicsPath class. Its IsOutlineVisible method allows to see if a mouse point hits the line.
 
Top Bottom