C# application maximized window -
first resize window button doesn't want work ,for reason.
private void fullscreenbutton_click(object sender, eventargs e) { if (this.windowstate == formwindowstate.normal) { this.windowstate = formwindowstate.maximized; } if (this.windowstate==formwindowstate.maximized) { this.windowstate = formwindowstate.normal; } }
and if make form maximized vs form properties http://postimg.org/image/mmy9r7qu9/ ,the form turns http://postimg.org/image/kzeyrb9fb/ .what going on?
- click on form
- go it's properties
- find option: "windowstate"
- change "maximized"
you can see image option in: https://www.mediafire.com/view/nmnf8wcjsl1zi6z/windowstate.bmp
and can try "button_click":
private void fullscreenbutton_click(object sender, eventargs e) { if (this.windowstate == formwindowstate.normal) { this.windowstate = formwindowstate.maximized; } else { this.windowstate = formwindowstate.normal; } }
Comments
Post a Comment