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


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


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) : 8746  (Professional)
Location : INDIA
Home Page :
About : I am admin of this site.
Rate this resource
Add your Comment
Name Email WebSite
Captcha Refresh

Comments (0)
No comments found, click here to add comment.