How can you draw a geometric figure (line, square, triangle), then convert it into a control or object so that events, tooltips and so on can be applied to it.
I thought at first to take the panels, draw on them, but the panels overlap and overlap each other.
Thank.
Adding: Take for example CorelDraw or PhotoShop. They can create geometric shapes. After creation, we can move them, resize and perform other actions. How can you do something like this in c #?
Appendix 2: Used by Windows Forms. Yes, it is required to create arbitrary controls, but so that their background does not overlap each other. I tried at the loaf to make OpacityMask, but the resharper swears that there is no such thing. how to make (let’s use the button as an example) so that the control has a transparent background, but there is a picture on it.
and button1.BackColor = null - does not roll.