J
Jason Huang
Hi,
In my ASP.Net C# Windows Form project, I have 2 forms, FormParent and
FormChild.
I have a Button1_Click event in FormParent, and the codes are:
private void Button1_Click(object sender, System.EventArgs e)
{
FormChild MyFormChild=new FormChild();
MyFormChild.ParentForm=this;
MyFormChild.Show();
}
However, there's some error message saying the
System.Windows.Forms.ContainerControl.ParentForm is ReadOnly.
What have I done wrong?
Any help will be appreciated.
Jason
In my ASP.Net C# Windows Form project, I have 2 forms, FormParent and
FormChild.
I have a Button1_Click event in FormParent, and the codes are:
private void Button1_Click(object sender, System.EventArgs e)
{
FormChild MyFormChild=new FormChild();
MyFormChild.ParentForm=this;
MyFormChild.Show();
}
However, there's some error message saying the
System.Windows.Forms.ContainerControl.ParentForm is ReadOnly.
What have I done wrong?
Any help will be appreciated.
Jason