Getting info from MDI child?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

I have a Main Window called frmBase and it has a child window based on
frmProject.

I want to save the data I have enetered in frm Project by choose ing save in
the menu of frmBase...

How doget the info from the MDI child window? And what happens if I have
more than one child, based on frmProject?

best regards
/Lars Netzel
 
Hi,

They are available in the mdichildren collection.

For Each f As Form In Me.MdiChildren
If f.GetType Is GetType(Form1) Then
Trace.WriteLine(DirectCast(f, Form1).TextBox1.Text)
End If
Next

Ken
 
Back
Top