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