We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Blue menu bar

Unimatrix_001
on
Medium Priority
351 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
Comment
Watch Question

Commented:
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.

Author

Commented:
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
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
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
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
For C#, there is a setting in the Program.cs:

            Application.EnableVisualStyles();

Author

Commented:
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
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
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?
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
Is that a MenuStrip or a MainMenu object?

Author

Commented:
It is a MenuStrip, I don't appear to have a MainMenu object in the toolbox?

Author

Commented:
>>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.
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008

Commented:
If it is a MenuStrip, what is the setting for RenderMode?

Author

Commented:
If it is a MenuStrip, what is the setting for RenderMode?
ManagerRenderMode
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview

Author

Commented:
That's the ticket! :D

Author

Commented:
By the way if you're familiar with C#, I have a question here if you fancy:
https://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_24529820.html

Author

Commented:
:)
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.