XNA Game Development Forums
2012/05/21 19:17:55 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: WindowsState.maximized how?  (Read 1527 times)
XNASorcerer
Newbie
*
Offline Offline

Posts: 25



View Profile
« on: 2007/05/03 09:18:33 »

Does anyone knows how can I make my game window to start maximized? I don't mean fullscreen, but maximized. I want the window to fill all the screen and still show the title bar.

thanks.
Logged
EclipsE
Full Member
***
Offline Offline

Posts: 111


View Profile
« Reply #1 on: 2007/05/03 11:51:27 »

Well, first you will have to find the screen width and height... can't help you with that  Huh
Logged
ericc59
Jr. Member
**
Offline Offline

Posts: 50


View Profile
« Reply #2 on: 2007/05/04 06:29:20 »

System.Windows.Forms.Screen.PrimaryScreen.Bounds
Logged
DaphydTheBard
Jr. Member
**
Offline Offline

Posts: 55


View Profile
« Reply #3 on: 2007/05/07 15:09:18 »

Then, do this, replacing the screen size with what you've got from the previous post:

 protected override void Initialize()
        {
            //objGraphics.PreferredBackBufferWidth = 1024;
            //objGraphics.PreferredBackBufferHeight = 768;
            //FullScreen = true;
            objGraphics.SynchronizeWithVerticalRetrace = false;
            Init();
            base.Initialize();
        }
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.182 seconds with 17 queries.