private void btnNew_Click(object sender, EventArgs e) { pnlops.Controls.Clear(); mem_new c = new mem_new(); c.Width = pnlops.Width; pnlops.Height = c.Height; pnlops.Controls.Add(c); }