Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


When to call myBase.Paint in windows forms

Posted on 2006-06-07
Medium Priority
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

Bob Learned earned 500 total points
ID: 16854207
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Integration Management Part 2
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

577 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