Hi,
I currently place a Form on a Panel. ie.
To get this form to fill the entire space of the Panel I call...
Is there another way? This method does not resize the Form if the Panel itself is resized. In effect, I need to Dock the Form but frm.Dock = DockStyle.Fill does not work.
A star for any helpful answer!
Thanks
Ry
I currently place a Form on a Panel. ie.
Code:
Form1 frm = new Form1();
frm.TopLevel = false;
frm.Parent = this.panel1;
frm.Show();
To get this form to fill the entire space of the Panel I call...
Code:
frm.WindowState = FormWindowState.Normal;
frm.WindowState = FormWindowState.Maximized;
Is there another way? This method does not resize the Form if the Panel itself is resized. In effect, I need to Dock the Form but frm.Dock = DockStyle.Fill does not work.
A star for any helpful answer!
Thanks
Ry