P
Pk
Hi,
Im having a problem in forms. I have a mdi parent form named Main, and
a child form named form1.
by accessing the menu, nothing happens.
When I tried to debug it, I put a breakpoint at the menu item
Private sub mnu1_click(byval sender as object, byval e system.args)
handles mnu1_click
dim frmadd as new form1
frmadd.mdiparent=me
frmadd.show()
End Sub
It generates an error, stating:
An unhandled exception of type 'System.ObjectDisposedException'
occurred in system.windows.forms.dll
Additional information: Cannot access a disposed object named "Form1".
This isnt a problem in VB6..
Thanks
Im having a problem in forms. I have a mdi parent form named Main, and
a child form named form1.
form1. But the problem is that when I close form1 and I open it againFrom Main form, i have a certain menu item that when clicked, it opens
by accessing the menu, nothing happens.
When I tried to debug it, I put a breakpoint at the menu item
Private sub mnu1_click(byval sender as object, byval e system.args)
handles mnu1_click
dim frmadd as new form1
frmadd.mdiparent=me
frmadd.show()
End Sub
It generates an error, stating:
An unhandled exception of type 'System.ObjectDisposedException'
occurred in system.windows.forms.dll
Additional information: Cannot access a disposed object named "Form1".
This isnt a problem in VB6..
Thanks