N
No Sheds
Hi
I have an MDI application. I have a MDI child window within this
application that shows another form using ShowDialog. This works fine,
except that the final form shown with ShowDialog can't be an MDI child
window, and so can appear outside the boundaries of the main window.
I know I can do something like this:
private withevents FinalForm as someform
Sub Search()
dim FinalForm as new someform
FinalForm.Show
End Sub
Sub FinalFormClosing handles FinalForm.Closing
'Do something when the form closes...
End Sub
However, that means that I have to have the code in two sections. I
much prefer the code to look as it does when I use ShowDialog:
dim FinalForm as new someform
FinalForm.ShowDialog()
'use the result from the FinalForm here...
Is it possible to write something that behaves like ShowDialog, but
works for MDI child forms?
TIA
I have an MDI application. I have a MDI child window within this
application that shows another form using ShowDialog. This works fine,
except that the final form shown with ShowDialog can't be an MDI child
window, and so can appear outside the boundaries of the main window.
I know I can do something like this:
private withevents FinalForm as someform
Sub Search()
dim FinalForm as new someform
FinalForm.Show
End Sub
Sub FinalFormClosing handles FinalForm.Closing
'Do something when the form closes...
End Sub
However, that means that I have to have the code in two sections. I
much prefer the code to look as it does when I use ShowDialog:
dim FinalForm as new someform
FinalForm.ShowDialog()
'use the result from the FinalForm here...
Is it possible to write something that behaves like ShowDialog, but
works for MDI child forms?
TIA