G
Guest
Hi
I'm learning c# 2.0 as I feel I need to be able to switch between vb & c#,
I'm just starting with a few simple examples and I've come across a problem.
I've got two forms ones an MDI parent & ones a child form.
I've put this code into a menustrip on the parent form
private void maintainClientsToolStripMenuItem_Click(object sender,
EventArgs e)
{
FrmCustomer frm = new FrmCustomer();
frm.MdiParent=this;
frm.Show();
}
when I run the application, the child form seems to be shown in the left
hand upper corner (with the top bar of the form hidden behind the parents)
even though the child form is set to be maxmized, if I click the maximize
button in the child form it resizes to a small form and maximizing it gives
the right result and all works ok.
Why doesn't this work first time in vs2005, yet the same code does in vs2003?
I'm learning c# 2.0 as I feel I need to be able to switch between vb & c#,
I'm just starting with a few simple examples and I've come across a problem.
I've got two forms ones an MDI parent & ones a child form.
I've put this code into a menustrip on the parent form
private void maintainClientsToolStripMenuItem_Click(object sender,
EventArgs e)
{
FrmCustomer frm = new FrmCustomer();
frm.MdiParent=this;
frm.Show();
}
when I run the application, the child form seems to be shown in the left
hand upper corner (with the top bar of the form hidden behind the parents)
even though the child form is set to be maxmized, if I click the maximize
button in the child form it resizes to a small form and maximizing it gives
the right result and all works ok.
Why doesn't this work first time in vs2005, yet the same code does in vs2003?