blacklocist 0 Junior Poster in Training

Hi All,
Well I am for the first time messing with GDI+ and figured it's what I need to do for my project.

I have been drawing shapes and pens and filling them in sorta like paint but I would like to be able to draw a bounding box around any shape I create. This is to indicate that the object is selected. Here is my only idea I have and don't know how to get the info.

When a object is clicked find the location point of the object and the height and width. Then just draw a rectangle with a thin brush and be done.
If all the objects in the world was square or rectagle then this would be easy. What about a circle or a custom shape.

Am I going about this the wrong what or is there a method or something that I am missing? Thx


Here is a pic of what I am talking about.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.