blah blah blah is here! blah blah » Close
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.
Hope this helps...http://www.java2s.com/Code/CSharp/2D-Graphics/DrawRectangle.htm
answered 2 years ago by:
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).
Got feedack? Found a bug? report it here.
2 answers
Hope this helps...
http://www.java2s.com/Code/CSharp/2D-Graphics/DrawRectangle.htm
answered 2 years ago by:
1309
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).
answered 2 years ago by:
2309