private void deleteBtn_Click(object sender, EventArgs e) { panel1.Controls.Clear(); DeleteMovie delete = new DeleteMovie(); delete.Visible = true; delete.Location = new Point(200, 0); panel1.Controls.Add(delete); delete.BringToFront(); }
private void deleteBtn_Click(object sender, EventArgs e) { if (userID != 0) { panel1.Controls.Clear(); DeleteMovie delete = new DeleteMovie(); delete.Visible = true; delete.Location = new Point(200, 0); panel1.Controls.Add(delete); delete.BringToFront(); } else { MessageBox.Show("please Login First !"); } }