How do I pop up a confirmation dialog when closing the form, determine if I add it?

xiaoxiao2021-03-06  81

Private void form1_closing (Object Sender, System.comPonentmodel.canceleventargs E)

{

IF ("OK close?", "Form", MessageBoxButtons.OkCancel) == DialogResult.cancel)

e.cancel = true;

}

转载请注明原文地址:https://www.9cbs.com/read-107959.html

New Post(0)