Making Forms Static

There will be times (actually probably more often than not) that you don't want your Forms to be movable. Option menus, game HUDs or what ever you want can be created using a Form, but not all of those need to provide movement support to the player.
Disabling movement support is really simple.

In order to do so, you set the Forms IsStatic Property to true after you instance it.
        protected override void Initialize()
            StandardForm form = new StandardForm(this, "New Form");

            //Force Form to not Move
            form.IsStatic = true;



Now when you run your game, your Form will not move when you click and drag!

Last edited Jan 19, 2012 at 9:13 PM by Scionwest, version 1


No comments yet.