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