Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove the title bar in Windows Forms

Tags:

c#

.net

winforms

How can I remove the blue border that's on top of the Window Form? (I don't know the name of it exactly.)

like image 614
lkj Avatar asked Sep 20 '11 09:09

lkj


People also ask

How do I hide windows form title bar?

if by Blue Border thats on top of the Window Form you mean titlebar, set Forms ControlBox property to false and Text property to empty string ("").

How hide title bar in Windows form in VB net?

Actually you can hide the title bar during runtime (i found a way to do this), by hiding the form before you change the borderstyle to 0(/none) and then show it back again. I used a checkbox to toggle it from 0 to 1/2/3/4/5. AND it works even if it has a value in TEXT property. BTW I'm using vb.net 2008.

How do you disable resize in Windows form?

First, select the form. Then, go to the properties menu. And change the property "FormBorderStyle" from sizable to Fixed3D or FixedSingle.


1 Answers

You can set the Property FormBorderStyle to none in the designer, or in code:

this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; 
like image 156
P-Storm Avatar answered Oct 01 '22 13:10

P-Storm