private void del_Click(System.Object sender, EventArgs e) { (parent as project_form).hold_autosize(this); Label tmplbl = (Label)sender; SplitContainer SC = (SplitContainer)tmplbl.Parent.Parent; verwijderd += 1; for (int i = 0; i < num_rows; i++) { if (SC == SC_ar[i]) { delnrs.Push(i); SC.Hide(); to_del[i] = true; //collaps(i); //btn_add.Location = new System.Drawing.Point(btn_add.Location.X, btn_add.Location.Y-33); } } }