We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,127 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to maximize form to fullscreen?

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).

3
Contributors
6
Replies
1 Week
Discussion Span
1 Year Ago
Last Updated
7
Views
Andy90
Junior Poster in Training
77 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

Try:

this.WindowState = FormWindowState.Maximized;
this.FormBorderStyle = FormBorderStyle.None;
Mitja Bonca
Posting Maven
2,561 posts since May 2009
Reputation Points: 642
Solved Threads: 486
Skill Endorsements: 13

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!

Sahil89
Posting Whiz in Training
200 posts since Sep 2011
Reputation Points: 10
Solved Threads: 22
Skill Endorsements: 1

lol, what I wrote?

Mitja Bonca
Posting Maven
2,561 posts since May 2009
Reputation Points: 642
Solved Threads: 486
Skill Endorsements: 13

n wat if i prove my point?

Sahil89
Posting Whiz in Training
200 posts since Sep 2011
Reputation Points: 10
Solved Threads: 22
Skill Endorsements: 1

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)
Sahil89
Posting Whiz in Training
200 posts since Sep 2011
Reputation Points: 10
Solved Threads: 22
Skill Endorsements: 1

????? mark it as solved andy

Sahil89
Posting Whiz in Training
200 posts since Sep 2011
Reputation Points: 10
Solved Threads: 22
Skill Endorsements: 1

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0739 seconds using 2.71MB