Mdi Forms
I have a mdi parent form with 2 forms inside it. When it loads I have one main form showing and want to show another form by clicking a button. I also do not want to create more than one instance of the form. Here is my code.
grid.MdiParent = frmMain.ActiveForm
grid.Show()
If grid.Visible = True Then
grid.BringToFront()
End If
That works fine until I close my grid form and try to reopen it. I get an error saying that it cannot access a disposed object name. Any help would be appreciated.
Thanks
Tim
|