I'm having problems using dialog windows in my program. Specifically when I call a
window using the ShowDialog in an SDI environment.
I have a main form that calls a dialog:
VB Code:
dim frm as new frmMaps frm.ShowDialog
in frmMaps I have 2 buttons that call another dialog (Add/Edit)
VB Code:
dim frm as new frmEditMap frm.ShowDialog
Problem arrises when I click close on the frmEditMap:
VB Code:
Me.DialogResult = DialogResult.Cancel Me.Close
However, for some reason this also closes the parent, frmMaps.
Essentially my goal is to have only once instance of frmMaps.
Cheers,
Tom




Reply With Quote