0

I want to use a win form. For some reason I'm not able to keep the resolution when I show a new dialog in my game class so I just want to use my win form as my main on launch but now I need to set the users resolution to 1024x768.

Setting the form itself is easy but, I need to set the user's resolution so that it matches the form.

How can I do that?

Nahuel Ianni
  • 3,177
  • 4
  • 23
  • 30
mholmes3038
  • 39
  • 1
  • 5
  • What? Is this what you mean: [How do I set the Window / Screen Size in XNA](http://stackoverflow.com/questions/720429/how-do-i-set-the-window-screen-size-in-xna)? – Nico Schertler Feb 08 '16 at 12:58
  • Does not work when you use a winforum – mholmes3038 Feb 12 '16 at 14:19
  • Don't ever change the desktop resolution of a user programmatically! They will kill you. If you really can't find a different solution (if you describe your problem a bit more detailed, one could help you with that), I'd propose to use a RenderTarget of 1024x768 size, render everything into it and then render everything from the RT to the backbuffer (stretched). Will be quite ugly though, probably. – LInsoDeTeh Apr 01 '16 at 16:01

0 Answers0