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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:08:44+00:00 2026-06-03T01:08:44+00:00

enter code hereI’ve built a winform MDI application based on two baseforms, a listform

  • 0

enter code hereI’ve built a winform MDI application based on two baseforms, a listform with a grid (_ListForm) and a dataform to display the child data (_DataForm).

When I load an inherited dataform into the MDI, the activated event from the base-form (_DataForm) is triggered and some properties are automatically set. When I load an inherited listform (_ListForm) into the MDI, the activated event is not triggered.

My childform doesn’t have an (overrided) activated event, there is no significant difference in the two forms, just one triggers the event, one doesn’t.

  • I’ve added the eventhandler in code and/or with the designer : no
    trigger
  • I’ve added a new activated event in the childform and called
    base.onActivated(e) : no trigger

For now I moved some of the code into the textchanged event (which also occurs once), but why is this Activated-event not being triggered?

Can add tons of code-samples if needed, but not sure what to post.

EDIT: Forgot to mention, it’s the same with the LoadEvent – doesn’t trigger in any way.

EDIT: Sources as per request:

_BaseForm : font and general background (no events)

public partial class _BaseForm : Form
{
    public _BaseForm()
    {
        InitializeComponent();
    }

_ListForm : grid and buttons

public partial class _ListForm : _BaseForm
{
    public _ListForm()
    {
        InitializeComponent();
        this.Activated += new EventHandler(_ListForm_Activated);
        this.DialogResult = System.Windows.Forms.DialogResult.Cancel;

        this.grid1.UltraGrid.DisplayLayout.Bands[0].Columns.ClearUnbound();
        this.grid1.UltraGrid.DisplayLayout.Override.AllowAddNew = Infragistics.Win.UltraWinGrid.AllowAddNew.No;
        this.grid1.UltraGrid.DisplayLayout.Override.AllowDelete = Infragistics.Win.DefaultableBoolean.False;
        this.grid1.UltraGrid.DisplayLayout.Override.AllowUpdate = Infragistics.Win.DefaultableBoolean.False;
        this.grid1.UltraGrid.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.RowSelect;

        this.grid1.PopulateGridColumns += new FB.Windows.Controls.Grid.PopulateGridColumnsEventHandler(grid1_PopulateGridColumns);
        this.grid1.UltraGrid.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(UltraGrid_InitializeLayout);
        this.grid1.RowSelected += new FB.Windows.Controls.Grid.RowSelectedEventHandler(grid1_RowSelected);
    }

_ListForm event (either in designer or code from ctor):

    this.Activated += new System.EventHandler(this._ListForm_Activated);
    this.Load += new System.EventHandler(this._ListForm_Load);

The event itself:

private void _ListForm_Activated(object sender, EventArgs e)
{
    if (AutoSearchOnOpen)
    {
        button1_Click(sender, e);
        this.grid1.Focus();
        this.ActiveControl = this.grid1;
    }
    else
    {
        this.textBox1.Focus();
        this.ActiveControl = this.textBox1;
    }
}

I know the Click inside the activated event will fire each time it’s activated, but for now that doesn’t matter: the main problem is: the whole event wont fire. Although the event in the _DataForm (also inherited from _BaseForm) is fired.

  • 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-06-03T01:08:47+00:00Added an answer on June 3, 2026 at 1:08 am

    In this case the grid (3rd party control) overloads (hijacks) the activated and loaded events for the form and don’t trigger the base event after the original event.

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

Sidebar

Related Questions

enter code here Hi All, I have a simple windows service application that connects
i have two dropdown list. first drop down:1 enter code here <form:select path=custName id=custName>
enter code hereI have a basic question regarding an implementation using a Axis2 web
enter code hereI'm trying to finish up Michael Hartl's Ruby on Rails v3.2 Tutorial
enter code hereIn my Application I am using Sqlite as an externel data base.
enter code hereI am using mail composing option from my app i.e when i
enter code here Just need to know the basics of peeking in scheme. I
enter code here I have a table on SQL server 2005 with bigint primary
enter code here I have a ListView that have a different Layout XML for
enter code here My problem is this: in this database the junction table contains

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.