SIGN UP MEMBER LOGIN:    
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
share this article :
post comment
 

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

Posted by Mark Kane Nov 25, 2009
Nevron Gauge for SharePoint
Become a Sponsor
PREMIUM SPONSORS
  • ceTE software specializes in components for dynamic PDF generation and manipulation. The DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and new content to existing PDF documents from within your applications. Visit DynamicPDF here
    The leading .NET charting control now features PDF, Flash and Silverlight export, visualization of large datasets and more. Deliver true charting functionality to your BI, Scorecard, Presentation or Scientific apps. Download evaluation now.
Become a Sponsor