private void button1_Click(object sender, System.EventArgs e) { Exitment ex = new Exitment(); ex.Owner = this; ex.Show(); ex.Left = App.MainFormManager.CurrentForm.Left + 100; ex.Top = App.MainFormManager.CurrentForm.Top + 150; }
public void cancel_Click(object sender, System.EventArgs e) { exitment.Show(); exitment.Left = App.MainFormManager.CurrentForm.Left + 100; exitment.Top = App.MainFormManager.CurrentForm.Top + 150; }