Sunday, 8 June 2008

Using a standard Windows.Form for XNA Projects

Something that I found very helpful was the article by Pedro Güida. It tells you how to render the standard XNA output to a standard Windows.Form. Why would you want to do that? Well, some say it's good for writing level editors, but in my case it was useful since I wanted to override the Forms WinProc, which isn't possible in the Game class delivered by the XNA templates. There are some other solutions that accomplish that, but Pedro's solution is the only one that let's you still use the comfortable Game's class in conjunction with a standard Form. So here you go :) Thanks Pedro for this elegant and simple solution!

No comments: