M
Mika M
Hi!
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
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
