ARTICLE

Drawing With no OnPaint Method

Posted by Mahesh Chand Articles | GDI+ & Graphics August 09, 2001
In this sample example, I draw GDI+ objects on button click.
Reader Level:
Download Files:
 

Couple of people have asked on discussion forums about drawing with no OnPaint method or event. 

Why OnPaint method? The main reason is we can get Graphics object easily on paint method. Actually painting with no OnPaint method is very simple. Just you need Graphics object for the form you're drawing on.

In this sample example, I draw GDI+ objects on button click.

Login to add your contents and source code to this article
post comment
     

I would be helpful if you explained a litle bit more.

Posted by Mark Kane Nov 25, 2009
COMMENT USING
PREMIUM SPONSORS
Over-C is a holistic consortium of communications and technology specialists. We build, deploy and market both business as well as consumer products and solutions.
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Get Career Advice from Experts