c# - MessageBox closed event -


i have messagebox ok button, although there's close button. in code can check dialogresult.ok. how should check button user had pressed? if (messagebox("error") != dialogresult.ok) or there's way? event, occures, when user closes messagebox?

you can way,

 dialogresult result = messagebox.show("message", "tests", messageboxbuttons.okcancel);  if (result == dialogresult.ok)  {   }  else if (result == dialogresult.cancel)  {   } 

Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -