Returning data from an MDI child to the parent?

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

Lars Netzel

I want to open a Form (frmInput) from a MDI Container Form (frmBase). And
type in information is some fields and then when I click close I want to
return that data to the parent (frmBase) .. sort of when you use
OpenFileDialoque and get a FileName from it and stuff..

I don't want to pass data this way..
ParentForm.Control.text = Child.Control.text
Child.Close()

How do I do it the OpenFileDialogue way?

regards
/Lars
 
can't use MDI stuff for this..

was pretty easy, you just need to use frmInput.ShowDialog and then in that
form set the DialogResult= OK and also create Public properties to read from
the base form.

And then put an IF DialogueResult = OK then... bla bla bla.. and get the
properties!

regards
/Lars
 
Back
Top