Selecting shapes drawn by GDI
I have a picturebox in my form and GDI draws geometrical shapes (arc, ellipse,rectangle etc.) and when user clicks on one of them (but when clicks the bound of the shape not the area that located inside the bounds) like in AutoCAD. For example : clicks on an arc, my app gets it as selecteditem = arc1 .
I can do that only with rectangle, line, triangle (shapes made by line/lines) But I can`t calculate an ellipse`s bounds cause it isn`t made with edges.
Please share the ideas with me if you have about how to do :( ,
Please help