1,105,263 Community Members

How to maximize form to fullscreen?

Member Avatar
Andy90
Junior Poster in Training
88 posts since Sep 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

I m creating an full screen application! But dont know how make it fullscreen (i.e the buttons minimize, maximize, and close button should not appear on screen).

Member Avatar
Mitja Bonca
Posting Maven
2,561 posts since May 2009
Reputation Points: 557 [?]
Q&As Helped to Solve: 489 [?]
Skill Endorsements: 21 [?]
 
1
 

Try:

this.WindowState = FormWindowState.Maximized;
this.FormBorderStyle = FormBorderStyle.None;
Member Avatar
Sahil89
Posting Whiz in Training
211 posts since Sep 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 24 [?]
Skill Endorsements: 3 [?]
 
2
 

You will need to change above code to maximize to full screen as follows

this.FormBorderStyle = FormBorderStyle.None;
this.WindowState = FormWindowState.Maximized;

The code posted by Mitja Bonca will make it fullscreen but it will not hide taskbar, so if u want to hide taskbar too then use this code else use Bonca's code. Good Luck!

Member Avatar
Mitja Bonca
Posting Maven
2,561 posts since May 2009
Reputation Points: 557 [?]
Q&As Helped to Solve: 489 [?]
Skill Endorsements: 21 [?]
 
0
 

lol, what I wrote?

Member Avatar
Sahil89
Posting Whiz in Training
211 posts since Sep 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 24 [?]
Skill Endorsements: 3 [?]
 
0
 

n wat if i prove my point?

Member Avatar
Sahil89
Posting Whiz in Training
211 posts since Sep 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 24 [?]
Skill Endorsements: 3 [?]
 
2
 

Hey Mitja Bonca heres the source file. I hope u will understand it. If not keep ur ego out of ur mind then u might understand else ask me I will post another file with comments for u.

Andy90 I hope this will help you. Good Luck!

Attachments FullscreenWindow.zip (63.51KB)
Member Avatar
Sahil89
Posting Whiz in Training
211 posts since Sep 2011
Reputation Points: 0 [?]
Q&As Helped to Solve: 24 [?]
Skill Endorsements: 3 [?]
 
0
 

????? mark it as solved andy

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article