private void button1_Click(object sender, EventArgs e) { panel2.Controls.Clear(); tweaks tweaks = new tweaks(); panel2.Controls.Add(tweaks); }