Groups | Blog | Home
all groups > dotnet windows forms > may 2006 >

dotnet windows forms : How to hide caption Bar in a Form


sajin
5/31/2006 8:14:50 AM
Hi All,

When we create new windows application there appears a default form
without any controls , it shows a caption as "Form1" in blue bar ,
could any one tell me how can i hide that part through program , i am
using vb .net 2005 ( meaning i don't want to show the controls like
close,minimize button in the form ,it should be a clear form)


Thanks in advance
Sajin
Chris Dunaway
5/31/2006 8:42:29 AM
[quoted text, click to view]

If you look in MSDN for the documentation of the Form class, you will
find the FormBorderStyle property.
Steve, Putman
5/31/2006 1:45:26 PM
Make the Form-ControlBox property as false
and Form Text property as empty string

Steve

[quoted text, click to view]

sajin
5/31/2006 11:35:55 PM
Thanks alot it works fine
[quoted text, click to view]
FUnky
6/1/2006 10:23:57 AM
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

AddThis Social Bookmark Button