Click here to Skip to main content
15,921,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello,

How to show the win form in full screen when run the windows application.
thank you.
Posted

go in properties of Windows Forms..!
and set the WINDOWS STATE PROPERTY = MAXIMIZED!
 
Share this answer
 
 
Share this answer
 
Comments
Oliver Bleckmann 24-May-14 7:26am    
Think this is the right solution. I remember it to be necessary to deal with some WinApi calls and System.Runtime.InteropServices to get a real full screen experience working.
In InitializeComponent(...) you can say
C#
this.WindowState = FormWindowState.Maximized;
 
Share this answer
 
Edit your main form constructor, and add a single line:
C#
public frmMain()
    {
    InitializeComponent();
    WindowState = FormWindowState.Maximized;
    }
 
Share this answer
 
hi there..

select the form which you wanna view as full screen.
Press f4 or go to the properties of that from..
Change the WindowState property to Maximized..

try this...
 
Share this answer
 
USE THIS CODE
C#
FormBorderStyle = FormBorderStyle.Sizable
TopMost = false;
WindowState = FormWindowState.Normal;
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900