blah blah blah is here! blah blah » Close

up0down
link

Hi,

Is there anyone to guide my how to draw a user control on windows form to display code generated images such as rectangle, circle or triangle.

last answered 2 years ago

2 answers

up0down
link

Hope this helps...

http://www.java2s.com/Code/CSharp/2D-Graphics/DrawRectangle.htm

up0down
link

if you are making your own control, create a class deriving from Control, override the OnPaint method, and use the event args' Graphics property to draw on your control. There are standard GDI+ drawing methods (circles rectangles, points, & so on).

Feedback