form application game object


vs 2015 monogame.forms windows project created


protected override void Initialize ()
base.Initialize ();

         GraphicsDeviceManager graphics = new GraphicsDeviceManager(**this**);
        graphics.PreferredBackBufferWidth = 1024;
        graphics.PreferredBackBufferHeight = 768;
        graphics.IsFullScreen = true;

What can I type instead of this? There is no game in the form application

I’ve never used MonoGame Forms, but I think you should make GraphicsDeviceManager graphics a global variable so you can reference it throughout your program.

After that, in your Game1() constructor, not Initialize(), put your other four lines of code.

Two more things:

  1. You should be able to remove the *s around the word this, I haven’t seen that before and it could be causing an error.
  2. base.Initialize(); should probably go at the end of your Initialize() method, just to be sure everything gets initialized properly. Same applies to your Update() and Draw().