Is there anyone out there who know if it's possible to draw a line on the "canvas" and have it reacting on mouseclick.
Example of the setup is I have five buttons on the form and connect them with lines.
I then want to be able to click on the line and get information on for instance the X and Y points of the endpoints.
If it's possible i also want to assign a "name" to this line to be able to sort wich line is selected if I have for instance 15 lines in a star pattern.
Hoping for this as I have tried myself and failed..