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:
  1. dim frm as new frmMaps
  2. frm.ShowDialog


in frmMaps I have 2 buttons that call another dialog (Add/Edit)

VB Code:
  1. dim frm as new frmEditMap
  2. frm.ShowDialog


Problem arrises when I click close on the frmEditMap:

VB Code:
  1. Me.DialogResult = DialogResult.Cancel
  2.     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