Using system.windows.forms with XNA

I am making a game using XNA. I would like to add things to the game, such as buttons, text fields, shortcuts, help texts and other materials that come with system.windows.forms. How to combine system.windows.forms with XNA? Are there any APIs or DLLs that I could implement to make this work?

Thanks,

BenShums

+7
forms winforms xna
source share
1 answer

The bad news: in short, no, this is impossible (at least in a straightforward way). While it is true that you can use the System.Windows.Forms control as a canvas for your game, you cannot use an XNA device as a canvas for your control.

Good News: There are already some alternative tools that create text boxes, buttons, and labels using XNA.

http://forums.xna.com/forums/p/1891/9461.aspx

+7
source share

All Articles