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 206063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:36:43+00:00 2026-05-11T17:36:43+00:00

To a WinForms control, I would like to add a handler after the container

  • 0

To a WinForms control, I would like to add a handler after the container has initialized the control (or even better, after the parent has initialized all contained controls).

Reason: The custom control has an option to trigger an action automatically. It should also trigger when this option is first enabled.

However, at this point, other properties (like event handlers) are not yet wired up correctly, and thus the effect is not as expected.

Is this possible?

[edit]

I understand that this sounds “a bit unusual”, so I want to clarify:

It is intended for this component: roughly, adding an option to “automatically create new document”.

I can create the DocumentInfo itself during initialization, or when the property is assigned during initialization. However, at this point I should also fire the event to tell (usually the parent form) that it needs to update the UI. The event might not yet been wired up, or other controls arestill uninitialized, that’s why I’d like to delay the event until the parent form is completely initialized.

  • 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-11T17:36:43+00:00Added an answer on May 11, 2026 at 5:36 pm

    The only thing I know of that would do this, directly from within the control, woudl be to override OnVisibleChanged, and handle your action the first time the control is shown.

    However, I would rethink the need for this. This is going to cause your control to behave differently from the standard Windows Forms Controls. Trying to hook your behavior into an event that is non-standard seems like a maintainance and usability nightmare to me…

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

Sidebar

Ask A Question

Stats

  • Questions 118k
  • Answers 118k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer should the callback not be just callback=? http://apiwiki.twitter.com/Things-Every-Developer-Should-Know#5Parametershavecertainexpectations ie http://twitter.com/friends/ids.json?screen_name=Planemad&callback=? May 11, 2026 at 11:31 pm
  • Editorial Team
    Editorial Team added an answer Look at this example: StringBuilder sb = new StringBuilder(); sb.append("Test… May 11, 2026 at 11:31 pm
  • Editorial Team
    Editorial Team added an answer It seems I used Query class in a wrong way.… May 11, 2026 at 11:31 pm

Related Questions

This seems like a fundamentally simple question. I have a WinForms dialog box with
Are there any libraries out there (preferably a self contained Text Edit Control) for
I am using VB.Net WinForms. I would like to call the Adobe Reader 9
I've developed a rather simple OSK for our kiosk application. It works by opening

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.