Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

customizing a System.Windows.Forms.Form 1

Status
Not open for further replies.

OhioSteve

MIS
Joined
Mar 12, 2002
Messages
1,352
Location
US
At across the top of my system.windows.forms.form, I see a narrow dark blue bar. How do I suppress this bar totally? I have already set minimizeBox, maximizeBox, and controlBox to false...but the strip itself is still appears.
 
I'd have a look at the different styles offered on the .FormBorderStyle property and see if any of them fit your applications needs.

Hope this helps

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Unfortunately, I already have the .BorderStyle set to "BorderStyle.None". That doesn't suppress the bar.
 
Wait...I spoke too soon. I did that to the dataGridView. I should try doing it to the form itself.
 
You are right. If you set the formBorderStyle to "none", the bar vanishes.

New question...Let's say I want to keep the bar, but change its color. Is that possible?
 
Off the top of my head this is possible using API calls (or at least I'm pretty sure it is [wink]), I'll bow to the more experienced .Netters out there if there's an easier solution though [smile]

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Thanks for answering my initial question!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top