Solved

Blue menu bar

Posted on 2009-06-28
15
323 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
  • 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
Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

 
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 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