how to create transparent shape controls.

Jul 7 2006 1:43 AM
 Hi

While searching for transparent shape controls in google i came up with the link  
 
 
My requrement is i've picture box in which i will add images at run time.
Lets assume i've a picutre box loaded with one image, now what i want to do is i need to draw rectangle over an image then it must show only the outer lines , i mean it must not fill the inner area with any color, it must be transparent so that the image must be displayed through that.
 
Best example is open photoshop and place the image on a form and draw rectangle or circle over the image then it will show only the outer lines, i want exactly that feature.
Can you please give me an idea how to do this.
 
I've created Rectangle User Control so that i can drag and drop that control over an image, but my control is not transparent and i want it to be transparent.

How can i create transparent rectangle user control ?

Thanx in advance
Jyothi

Answers (1)