MDI Application

Hi

I have an MDI application.

I placed a button on the toolbar of the MDI Parent (frmPar).

Now when I push this button, this button should execute a function in a child form (frmchild).

How can I do this ??


Thanks,

Jerry.
Jerry_0001Asked:
Who is Participating?
 
RonaldBiemansCommented:
       For Each f As Form In Me.MdiChildren
            If f.Name = "nameofyourchildform" Then
                DirectCast(f, nameofyourchildform).yourfunction()
            End If
        Next

the function should be public
0
 
Jerry_0001Author Commented:
This does it.

Thx!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.