Hi, i am here to ask some button control problem in Visual studio:
private void button1_Click(object sender, EventArgs e)
{
Report newMDIChild = new Report();
// Set the parent form of the child window.
newMDIChild.MdiParent = this;
// Display the new form.
newMDIChild.Show();
}
In my program, when i clicks the button1, it should flow to other interface/window ( Report)from current window (Form1) . However, by my codes above, when i clicks the button, the interface of Report is stack on the interface Form1 and not totally go to that window. What is mistake in my coding?