Arkerone
Arkerone

Reputation: 2026

XNA, winform and full screen

I have integrated XNA and winform with this tutorial http://roy-t.nl/index.php/2008/10/09/xna-30-and-winforms-the-easy-way/ the problem is that I would like be able to view the content XNA in full screen. How do that?

Thanks!

Upvotes: 0

Views: 253

Answers (1)

user1075940
user1075940

Reputation: 1125

If you want to resize content in picturebox you will need to add event SizeChanged in which you will update BackBuffer width and height.Otherwise rendering output will become pixalated.

 PresentationParameters params;
 params.BackBufferWidth = control.ClientSize.Width;
 params.BackBufferHeight = control.ClientSize.Height;
 GraphicDevice.Reset(params);

Upvotes: 1

Related Questions