I have made a MDI I environment in VB.net.
Form1 is container and Form2 is MDIChild.
I have made a class to reference Form2 and a constructor, the code is
public class1
public f1 as new form1
public f2 as new form2
sub new()
f2.mdiparent = f1. activeform
end sub
end class
I have made a moodule also in which i have made the object of class1
module1
public cl as new class1
end
Now when i open form2 from the file menu of form1 it gets open.
Then when i close the form2 from the right hand corner cross botton and
the next time i open it from file menu the error come ..cannot open the
Disposed FORM2.
Pls tell me HOW can i stop the form2 object from getting Disposed
Form1 is container and Form2 is MDIChild.
I have made a class to reference Form2 and a constructor, the code is
public class1
public f1 as new form1
public f2 as new form2
sub new()
f2.mdiparent = f1. activeform
end sub
end class
I have made a moodule also in which i have made the object of class1
module1
public cl as new class1
end
Now when i open form2 from the file menu of form1 it gets open.
Then when i close the form2 from the right hand corner cross botton and
the next time i open it from file menu the error come ..cannot open the
Disposed FORM2.
Pls tell me HOW can i stop the form2 object from getting Disposed