locked
using XNA on C#

    Question

  • can i use Xna form in C# windows application
    Wednesday, March 14, 2007 5:52 PM

Answers

All replies

  • Im not possative but I know that in the past, you could NOT use windows forms with direct3d or OpenGL since they lock out the rendering device and windows forms elements use the GDI for rendering. You could try, but I would imagine that even if they draw at all there just going to be flickering and popping (fighting with D3D).
    Wednesday, March 14, 2007 9:54 PM
  • Actually, you could probably specify that xna only renders to a portion of the screen... rendering area = 300,300 window size = 600,600 for example.
    Wednesday, March 14, 2007 9:56 PM
  • thanks
    Wednesday, March 14, 2007 10:01 PM
  •  

    Please remember that these forums will soon be marked as read only, all new posts should be made to http://creators.xna.com

    But to help, have you looked at Ziggy's article on including XNA inside a windows form.

    Thursday, March 15, 2007 3:20 AM
  • Yes, you can.  There's Ziggy's article, and another sample called "RenderControl" which creates a Windows forms control you can drop on your form.
    Thursday, March 15, 2007 8:37 PM