I would like to have an irregular polygonal shape sitting on a picturebox, pbox1.
As only straight lines, ellipses and rectangles are allowed for the Shape control I have to draw the polygon on another pbox2 with transparent background and place it on pbox1.
Now I'd like to have the option to hide the polygon. I don't mean setting or clearing the pbox2.visible property. Rather I'd like it to be visible if the first pbox has nothing on it but if, for example, I draw something on pbox1, say a straight line going through pbox2, then I'd like to select whether this line should be in front or behind pbox2.
What's the best approach for this? Is a image control best suited?




Reply With Quote