Resizing the Form (Client window)

2 replies [Last post]
Posts: 25
CP: 0

I've been looking through code, I'm more of a VB.net kind of guy, And this is the only place I've found where has anything to do with the size of the form

Located in GameForm.cs
this.ClientSize = new System.Drawing.Size(284, 264);

Would i be correct in saying this is where I would resize the entire client window?

Posts: 1647
CP: 26119

This is in the Designer code (GameForm.Designer.cs), isn't it? If so, that probably isn't what you want.

If you want to change the size, you should do it for all aspects of the game from DemoGame.GameData:

        /// <summary>
        /// Size of the screen display.
        /// </summary>
        public static Vector2 ScreenSize = new Vector2(1024, 768);

Posts: 25
CP: 0

Thanks for pointing our where to go for all the screens. Still looking through the code. A little confusing for not know much about C#. But I'll learn more and more as i go on.