Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I was able to create a form in xna using "Add Windows Form", named "Form1" then adding:

Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1()); 

How can I add graphics to some control, perhaps a picturebox, on Form1 that could potentially show my game as in a level editor?

Thanks.

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

Microsoft has an official tutorial on this: http://xbox.create.msdn.com/en-US/education/catalog/sample/winforms_series_1

"or maybe you're writing a level editor and want to place Windows user interface controls around the 3D drawing surface"

Basically, you embed your game as a control in a winform.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.