Example #1
0
 private void MsgBox_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (!usedConfirmBtn)
     {
         DialogResult = DialogResult.OK;
         DialogQueue.CloseCurrent();
     }
 }
Example #2
0
 private void confirmBtn_Click(object sender, EventArgs e)
 {
     usedConfirmBtn = true;
     DialogResult   = DialogResult.OK;
     DialogQueue.CloseCurrent();
 }