When to call myBase.Paint in windows forms

Posted on 2006-06-07
Last Modified: 2008-03-10
I inherited from a datagrid class and I have overridden the Paint() method. When I call MyBase.Paint(), what actually happens. I am still not clear with this object oriented stuff.

Question by:Sanmarie
    1 Comment
    LVL 96

    Accepted Solution

    1) .NET version?

    2) Why are you overriding the Paint method

    3) Where you call MyBase.Paint depends on what you are trying to do.

    4) Normally you call MyBase.Paint first to get the control to paint normally, and then do your own thing.


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Article by: jpaulino
    XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String ( Literal, only instead of starting and ending with w…
    Introduction When many people think of the WebBrowser ( control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now