G
Guest
hi,
I am new to winForm development. When I am using the .NET 2.0 MDI Forms,
I want to close one of the child form at the very begining. For example, I
want to close Form1, so I write
public Form1() {this.close();}
And in the MID Parent, I write
form1 = new Form1();
form1.MdiParent = this;
form1.Show();
The problem is that everytime I open Form1, it will close but there will be
an object dispose exception unhandled and my program will hang up. Could
anyone here please tell me how to solve this problem? I just want to close
one of my child form. Thanks a lot!
I am new to winForm development. When I am using the .NET 2.0 MDI Forms,
I want to close one of the child form at the very begining. For example, I
want to close Form1, so I write
public Form1() {this.close();}
And in the MID Parent, I write
form1 = new Form1();
form1.MdiParent = this;
form1.Show();
The problem is that everytime I open Form1, it will close but there will be
an object dispose exception unhandled and my program will hang up. Could
anyone here please tell me how to solve this problem? I just want to close
one of my child form. Thanks a lot!