Activate MDI Form

Welcome to Wisej Support.
Questions, suggestions and plain old bugs - are all welcome here!
0
0

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

  • You must to post comments
0
0

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

  • You must to post comments
0
0

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

 

  • You must to post comments
Showing 2 results
Your Answer
Post as a guest by filling out the fields below or if you already have an account.
Name*
E-mail*
Attachment
File Name Size
There are currently no files uploaded.
Maximum number of files 1, maximum file size 3.9MB.
Supported file formats: zip pdf gif jpg bmp png cs vb theme json