c# - What Event is used for Maximizing and Minimizing? -


this question has answer here:

what event used maximizing , minimizing windows form? want show message box when form maximizes , comes out of minimizing mode.

this tested code

 private void form1_resize(object sender, eventargs e)     {         if (windowstate == formwindowstate.minimized)         {             messagebox.show("minimize");         }         else if (windowstate == formwindowstate.maximized)         {             messagebox.show("maximize");         }       } 

Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -