• Advertisement
Sign in to follow this  

about forms..

This topic is 3812 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i wrote a program in XNA : a sprite moving in form. how will i draw my game in a form's picturebox ?

Share this post


Link to post
Share on other sites
Advertisement
You can set XNA's graphics device class up to render to an arbitrary window handle (the Handle property of any Control class for example, including a picture box -- although a regular Panel control works just as well). If you Google for "XNA Windows Forms" or similar search strings, you will get plenty of results describing the process, including this one.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement