As soon as I press the button, a form with no content quickly shows and then disappears. This happened both with the code as it is documented in the help topic as well as my trivial modification below (added a member variable to the form class to hole an instance of the form). I initially thought it may be due to the VFP "problem" of a variable going out of scope. But, alas, I don't think so as the behavior is equivalent in both incarnations.
Thanks again,
CT
Imports
Public
Protected oDialog As SecurityDialog()
Private Sub cmdSecurityDialog_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSecurityDialog.Click
Using oDialog As New SecurityDialog()
oDialog.Show()
End Using
End Sub
End Class
loForm.MDIParent = MeloForm.Show
or
loFOrm.ShowDialog()