DotNet Mirror
  DNM facebook   DNM Google+   DNM Twitter   

Programmatically minimize or maximize a WPF/WinForm window

By Ashok Nalam on 11 Apr 2014 | Category: WPF | Tagged: C# window wpf winforms .NET 
  Discuss Add Comment   |  
Add rating Rate this resource   
We can minimize a WPF/WinForm window from code behind file using below code

WinForm:

this.WindowState = System.Windows.Forms.FormWindowState.Minimized;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;

WPF:

this.WindowState = System.Windows.WindowState.Minimized
this.WindowState = System.Windows.WindowState.Maximized
FormWindowState/WindowState are enumerations which specifies how a form window is displayed. Avalialbe members of enum are Minimized,Maximized and Normal. Default is Normal(restored).
  Discuss Add Comment    
Add rating Rate this resource   
About the Contributor
Member Since : 10 Dec 2012
Member Points (Level) : 9526  (Professional)
Location : INDIA
Home Page : http://dotnetmirror.com
About : I am admin of this site.
Rate this resource
 
Add your Comment
Name Email WebSite
Captcha Refresh


Comments (2)
 
1. By ZAP on 23 Oct 2023

 
2. By ZAP on 23 Oct 2023

 
cheap jordans|wholesale air max|wholesale jordans|wholesale jewelry|wholesale jerseys