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
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
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