Movie Review list

Published 6/30/2009 by createdbyx in News

I have tweaked the Articles page and added a new page titled "Movie Review List" where I will be listing the various movies that I have watched. The list is only about ten percent complete at this point. I have been keeping a list of movies I have watched these last few years so I will be adding more to the list as I find the time and will to do so.


XNA WinForms Reduex!

Published 6/15/2009 by createdbyx in News | Programming | XNA

First start a new xna window game project. Then add a new "MDI Parent Form" to the project. After that change the code in the Program.cs file to look like this ...

static void Main(string[] args)
{
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);

    using (Game1 game = new Game1())
    {
        MDIParent1 mainMDIForm = new MDIParent1();
        var gameWindow = Control.FromHandle(game.Window.Handle) as Form;
        if (gameWindow != null)
        {
            gameWindow.MdiParent = mainMDIForm;
        }

        mainMDIForm.Show();
        gameWindow.Show();
        game.Run();
    }
}

Now press F5 to run the application. Voila! You can now proceed to add game editing or other win form controls to the MDI window for what ever you need. But some initial testing raised a few minor issues.

The first one is that once in a while the viewport does not get updated if the game window is resized. There is also a issue where keyboard keys don't work properly if the game window is the active window. To over come this just make sure that after you are finished interacting with the game window to just deactivate the window again. Then you will be able to press Alt-F to bring up the file menu for example.


Winforms in XNA

Published 6/1/2009 by createdbyx in Example | News | Programming | XNA

I have created a example project on the XNA page that demonstrates how to add winform controls to your game window in just a few lines of code. I created this project because I recently downloaded the winforms example project found at the XNA creators club website and found it to be rather overkill for what it does.  View Screenshot

Download the example project here. AddingWinformControlsTest.zip (38.58 kb) (XNA 3.0)


Created by: X

Just another personal website in this crazy online world

Name of author Dean Lunz (aka Created by: X)
Computer programming nerd, and tech geek.
About Me -- Resume