2
\$\begingroup\$

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.

\$\endgroup\$
2
\$\begingroup\$

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.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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