I am using the below code to open a new form:
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
Dim NewMDIChild As New mdgeneral
'Set the Parent Form of the Child window.
NewMDIChild.MdiParent = Me
'Display the new form...
This a code to load a form as a child form in a mdiparent form every thing works fine. but when i try load a already loaded form it gives an error
Cannot access a disposed object. Object name: '<Form Name>'.
Here is the code....
Private Sub LoadPage(ByVal formToLoad As Form, ByVal Icon As...