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
Post a Comment