Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2006

Tip: Looking for answers? Try searching our database.

How to hide caption Bar in a Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sajin - 31 May 2006 16:14 GMT
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 - 31 May 2006 16:42 GMT
> 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)

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

Steve

> Hi All,
>
[quoted text clipped - 6 lines]
> Thanks in advance
> Sajin
FUnky - 01 Jun 2006 05:53 GMT
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
sajin - 01 Jun 2006 07:35 GMT
Thanks alot it works fine
> this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.