Share via


How do I hide that application header + border in a windows forms app.

Question

Wednesday, March 3, 2010 1:46 AM

You know there's like this header at the top of the application that allows you to move the entire form window if you click and hold it? And there's a border that connects to it that encompasses the entire application window. How do I remove these? I would like all edges of my actual form to touch the background without these border (like you see in expression blend applications)
Edit: The windows title bar.

All replies (2)

Wednesday, March 3, 2010 2:27 AM ✅Answered

 

 

 

this.FormBorderStyle = FormBorderStyle.None;

You will have to handle the MouseMove,MouseUp and MouseDown events to move the form now that the borders are gone... Also you will have to define at least a close method (as the max, min and close buttons are gone too)..


Wednesday, March 3, 2010 6:44 AM ✅Answered

Evehi ,

Eventhough type code simplyset the value in prorperty Window Set 

                               FormBorderStyle= None;

regards,
S.Subashselvan