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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -