Mika,
It is a simple question yes, however the showdialog is very easy for this.
When there is few processing it will as well not be bad, however when there
is time involving processing in one of your forms you will need
multithreading.
Here a sample I made some weeks ago.
It shows 3 forms the main, and one normal and one with threading.
http://groups.google.com/groups?selm...TNGP10.phx.gbl
I hope this helps?
Cor
"Mika M" <mika.mahonen@nospam_kolumbus.fi>[color=blue]
>
> If Windows Form -application has for example a button on Form1 which
> Click-event opens other Form2-form like...
>
> Dim f as New Form2
> f.ShowDialog()
> If (f.DialogResult = DialogResult.OK) Then
> SaveText(f.txtInput.Text)
> End If
> f.Dispose()
>
> ...and when OK-button was pressed on Form2, it saves content of the
> TextBox on the Form2 before closing Form2.
>
> This is working fine like this way for now. But I want to keep Form1 as an
> editable form when Form2 is open, how to this?
>
> I tried simply changing line f.ShowDialog() to f.Show(), but then code
> execution is going to the end of the Sub, and I can't catch when OK was
> pressed on the Form2. I thing this is simple question. Hopefully you
> understand what I'm trying to explain :)
>
> --
> Thanks in advance!
>
> Mika
>[/color]