Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Editor time

Sign in to follow this  


XNA In Windows Forms

So, anyone who's read my previous journal entries would know that one of my pet gripes with XNA was getting it to work in Windows Forms. The standard XNA Game class wants to create and manage its own windows and doesn't cooperate with controls and stuff. However, I found a nice little tutorial on how to create an XNA control that you can slot into your Windows Forms apps here. This is pretty much the "Microsoft Approved" way of doing XNA in forms and has support for device resets, windows resizing, multiple target render controls and all that junk. Joy [smile].

So I've ported my DiamondSquare code to the new project and slimmed it down a bit to be more of a component than the entire basis of a level. So now that I have XNA 2.0 working in windows forms, I'll be getting some nice heightmaps displaying in the form and start working on an interface for an editor.

Edit: Okay, got off my arse and switched to a non-Christmas avatar.
Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!