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
 

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

Back
Top