In your loop you should check the type of each form. If the types matches
the type of your "special" form, then you can use the method:
For Each form As Form In Me.MdiChildren
If form.GetType Is GetType(Form1) Then
CType(form, Form1).MyMethod()
End If
Next
--
Greetz
Jan Tielens
________________________________
Read my weblog:
http://weblogs.asp.net/jan
"Merlin" <(E-Mail Removed)> wrote in message
news:br6nca$3t2$(E-Mail Removed)...
> Hi,
>
> Can someone please help.
>
> I wish to loop through all my MDI children and call a sub procedure I have
> created, my problem is that the sub procedure may not exist in all the MDI
> children so the program crashes.
>
> What is the best way to tackle this.
>
> Thanks.
>
> Merlin
>
>
>
>