Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6912147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:03:20+00:00 2026-05-27T09:03:20+00:00

When overriding the Event Methods of a Form, I’ve so far seen no difference

  • 0

When overriding the Event Methods of a Form, I’ve so far seen no difference between calling the base method and not calling it.

Q – What do the overridden methods really do?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:03:20+00:00Added an answer on May 27, 2026 at 9:03 am

    The MSDN documentation for these methods makes no bones about it. They have a “Note to implementers” phrase that demands that you call the base method. Most of the base method implementations are pretty clean and do nothing but raise the event associated with the method. So if you override OnPaint, do all of the painting and not call base.OnPaint() then the Paint event won’t be raised. Which works well enough but can be an unpleasant surprise to another programmer that wants to use the Paint event and has no clue why his code doesn’t work.

    Not all of these base methods are that simple though, they do sometimes do extra stuff. Like OnFormClosing() calls ValidateChildren(). That might matter, or you might not care by accident. The complexity of the control is a factor. A good example is DataGridView, quite unlikely it will work well when you skip the base calls. This kind of mis-behavior is very hard to diagnose.

    There’s little point in risking this, you don’t have the time machine to tell you that it won’t cause trouble.

    There’s is only one aspect about this that should concern you, not otherwise asked in the question. Should you call the base method first, then write the customization. Or should you customize first, then call the base method? This is the reason these methods exist. And it is up to you to decide who’s the boss.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am overriding the clean() method on a Django form. I want to have
I've tried overriding the OnLoad event, but the form is getting drawn before this
When overriding the MembershipProvider and calling it directly, is there a way to fill
when overriding the loadView method in UIViewController, should one call [super loadView] in the
I'm having trouble overriding a ModelForm save method. This is the error I'm receiving:
I understand overriding a method/function redefines its implementation in the derived class from its
I'm overriding the touches methods in a UIView for a piano app. If I
Im overriding an equals() method and I need to know if the object is
I am overriding the onCreateDialog and onPrepareDialog methods or the Dialog class. I have
I struck up in a Javascript method overriding problem for a while. the problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.