Removing the Title Bar

A lot of times you might want to create a Form that holds various content, but you don't need the title bar to be displayed. You can hide the title bar by changing the Forms HasTitleBar property.

        protected override void Initialize()
            StandardForm form = new StandardForm(this, "New Form");

            //Force Form to not Move
            form.HasTitleBar = false;



As shown below, the Form no longer has a title bar!

Now, a lot of times when there is no title bar, you don't want to see the text either. Sometimes you still want it shown. The next tutorial shows how to remove the text if you don't want it.

Last edited Jan 19, 2012 at 9:25 PM by Scionwest, version 4


No comments yet.