Activate MDI Child

G

Guest

Hi,

I have an MDI Parent form with 2 mdi children.

I have implemented a copy of data from one child to the other, and the
target form should then become the active mdi child.

But when I try to do this:

frmEditor.MdiChildren(1).ActivateMdiChild()

I get a compilation error:
'System.Windows.Forms.Form.Protected Sub ActivateMdiChild(form As
System.Windows.Forms.Form)' is not accessible in this context because it is
'Protected'.


How can I explicitly activate an MDI Child please

thanks for any help

Philip
 
C

Cerebrus

Hi Philip,

Have you tried using the simple "Activate" method ?

as in :

frmEditor.MdiChildren(1).Activate()

The ActivateMdiChild() method documentation says : (For .NET 1.1)

This member supports the .NET Framework infrastructure and is not intended
to be used directly from your code.

Regards,

Cerebrus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top