Solved

Blue menu bar

Posted on 2009-06-28
15
324 Views
Last Modified: 2013-11-07
Hi,

Just created a new Windows Form Application using the 2.5 framework, but it seems the menu strip that has been added is blue! I'm running on XP so I'd expect it to take the look and feel of the XP system where a menu bar is the same colour as the control colour. Am I missing something here?

Cheers,
Uni
0
Comment
Question by:Unimatrix_001
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 6
15 Comments
 
LVL 11

Expert Comment

by:saragani
ID: 24736144
And it will also look different on Vista (On XP it looks 3D and on Vista it looks flat).

What I usually do is either use a decent menu bar (Like infragistics), or use a background image to the menu bar which gives it a Vista look (like a black 3D background). This way it looks cool and it also looks the same on both Vista and XP.

0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 24736257
I don't want it to look the same on Vista and XP, I'm wanting the menu bar to take on the appearance of the operating system. The first image is not the normal XP menu bar, the second one is. There's bound to be a standard menubar component in Visual Studio for this.

Thanks,
Uni
bar.bmp
bar.bmp
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 24736296
There is 2.0 or 3.5, not 2.5 framework version.  Is this a VB.NET application?

VB.NET applications have a project setting that is shown in the attached image.
Windows-Application-Framework-Pr.png
0
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
LVL 96

Expert Comment

by:Bob Learned
ID: 24736305
For C#, there is a setting in the Program.cs:

            Application.EnableVisualStyles();

0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 24736332
Hi,

Yes you are correct - it is a 2.0 version. No this is a C# application. I've checked the Program.cs, and the EnableVisualStyles method is already getting called?

Thanks,
Uni
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 24736359
Was the application migrated from 1.1 to 2.0?  If you create a new project, and a new form, do you have the same problem?
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 24736364
Is that a MenuStrip or a MainMenu object?
0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 24736373
It is a MenuStrip, I don't appear to have a MainMenu object in the toolbox?
0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 24736384
>>Was the application migrated from 1.1 to 2.0?  If you create a new project, and a new form, do you have the same problem?

No, this is a new project using the 2.0 framework from the start.
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 24736385
If it is a MenuStrip, what is the setting for RenderMode?
0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 24736396
If it is a MenuStrip, what is the setting for RenderMode?
ManagerRenderMode
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 24736408
Do you need RenderMode = System?
0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 24736426
That's the ticket! :D
0
 
LVL 3

Author Comment

by:Unimatrix_001
ID: 24736437
By the way if you're familiar with C#, I have a question here if you fancy:
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_24529820.html
0
 
LVL 3

Author Closing Comment

by:Unimatrix_001
ID: 31597687
:)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question