Skip to content

Activate MDI Form #223

Closed
Closed

Description

@itg-assistant

Alex Prinias asked 2016-08-31 09:08:54 UTC

Hi,

I want to activate a certain MDI child form from code. However, the methods childForm.Activate and childForm.Select do nothing. And there is no MDIParentForm.ActivateMDIChild(childForm) method, as in WinForms.

Any suggestions?

Best,
Alex

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Luca answered 2016-08-31 16:45:01 UTC

    Hi Alex,

    It's a bug, fixed in dev, caused by the fact that the mdi child form's Visible property returns false when it's not active and the call to Activate() doesn't activate invisible forms, which is correct in the case of normal forms.

    As a temporary workaround please use this:

    mdiChild.Visible = true;
    mdiChild.Activate();
    

    Best,

    Luca

  2. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Alex Prinias answered 2016-08-31 17:06:01 UTC

    Hi Luca, thanks for your answer.

    Unfortunately, the workaround doesn't seem to work, even after the Visible = true, the call to Activate doesn't bring the Form to the front...

    Best,
    Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    GeneralQuestions, how-tos and everything else.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions