basically what I want to do is center a 800x600 game inside a maximized window. so if the resolution is 1280x1024, there will be a large border, but if the resolution is 800x600 it will take up the whole screen
this is in the Initialize method, it makes the game window fullscreen with a fixed 3d border but the client area also resizes to full screen
Form gameWindowForm = (Form)sys.Form.FromHandle(this.Window.Handle);
gameWindowForm.FormBorderStyle = FormBorderStyle.Fixed3D;
gameWindowForm.Text = "";
gameWindowForm.ControlBox = false;
gameWindowForm.WindowState = sys.FormWindowState.Maximized;
I have tried setting preferred back buffer, clientbounds size, viewport and displaymode. No matter what I try to resize I either can't because it is read only or it doesn't change anything.
Any help?