XNA Game Development Forums
2012/05/21 19:17:34
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Calendar
Login
Register
XNA Game Development Forums
>
Hazy Discussion
>
General Discussion
>
WindowsState.maximized how?
Pages: [
1
]
« previous
next »
Print
Author
Topic: WindowsState.maximized how? (Read 1527 times)
XNASorcerer
Newbie
Offline
Posts: 25
WindowsState.maximized how?
«
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
Posts: 111
Re: WindowsState.maximized how?
«
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
Logged
ericc59
Jr. Member
Offline
Posts: 50
Re: WindowsState.maximized how?
«
Reply #2 on:
2007/05/04 06:29:20 »
System.Windows.Forms.Screen.PrimaryScreen.Bounds
Logged
DaphydTheBard
Jr. Member
Offline
Posts: 55
Re: WindowsState.maximized how?
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Hazy Discussion
-----------------------------
=> General Discussion
=> Hazy Mind XNA Engine
===> Tutorial Discussion
=> Show Off Board
-----------------------------
Hazy Requests
-----------------------------
=> Hazy Mind XNA Engine Requests
=> Forum Requests
-----------------------------
Hazy Mind 3D Engine (Old Discussion)
-----------------------------
=> Hazy Mind 3D Engine
=> Hazy Mind Scene Editor
=> Hazy Mind 3D Engine Requests
=> Hazy Mind Scene Editor Requests
Loading...