private void button1_Click(object sender, EventArgs e) { MakineSecim ms = new MakineSecim(); panelMain.Controls.Clear(); panelMain.Controls.Add(ms); ms.Show(); ms.Dock = DockStyle.Fill; ms.BringToFront(); }
private void Form1_Load_1(object sender, EventArgs e) { Console.WriteLine("form1 load event fired"); MakineSecim ms = new MakineSecim(); panelMain.Controls.Clear(); panelMain.Controls.Add(ms); ms.Show(); ms.Dock = DockStyle.Fill; ms.BringToFront(); }