Cor Ligthert,
This is the routine I am attempting to execute in the Parent Form:
Public Sub SetAppropriateWindow(ByVal i As Integer)
'use parameter i for something
End Sub
and the routine that is the child form is:
Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'Call SetAppropriateWindow of MDIParent
DirectCast( Me.MdiParent, FormMdiParent ).SetAppropriateWindow(3)
t1 = New Thread(AddressOf AmibrokerThread)
t1.Start()
End Sub
that second parameter " FormMdiParent " , where can I get that parameter ?
Also, in MS Visual J if I wanted to communicate between 2 Forms I had to
go through an Interface class, does that also apply to VB.NET ?
"Cor Ligthert [MVP]" <no************@planet.nl> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl...
Rob,
Sorry I did it to quick
DirectCast(Me.MdiParent, FormMdiParent).MyMethodInFormMdiParent()
I hope this helps,
Cor