private void button2_Click(object sender, EventArgs e) { DialogResult dr = new DialogResult(); Pop pop = new Pop(); // pop.setTitle = "my pop fdgdfgfd"; dr= pop.ShowDialog(); if (dr == DialogResult.OK) MessageBox.Show("User clicked OK button"); else if (dr == DialogResult.Cancel) MessageBox.Show("User clicked Cancel button"); }
private void userLoginButton1_Click_1(object sender, EventArgs e) { Pop Pop = new Pop(); Pop.Show(); }