Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drawing on picture box

Status
Not open for further replies.

josphin

Programmer
Apr 5, 2003
19
BE
hi all,

i'm trying to draw circles on a picture box as follows:

Graphics dc = this.CreateGraphics();
Pen redPen = new Pen(Color.Red, 10);
dc.DrawEllipse(redPen,100,100,50,50);

of course the ellipse (in this case circle) is under the picture. how can i fix this ?
thanx!
 
it should be

graphis dc = picturebox1.creategraphics();

since you want to draw the elipse in the picturebox


Christiaan Baes
Belgium

If you want to get an answer read this FAQ faq796-2540
There's no such thing as a winnable war - Sting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top