Link to home
Start Free TrialLog in
Avatar of Unimatrix_001
Unimatrix_001Flag for United Kingdom of Great Britain and Northern Ireland

asked on

Blue menu bar

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
Avatar of saragani
saragani

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.

Avatar of Unimatrix_001

ASKER

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
Avatar of Bob Learned
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
For C#, there is a setting in the Program.cs:

            Application.EnableVisualStyles();

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
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?
Is that a MenuStrip or a MainMenu object?
It is a MenuStrip, I don't appear to have a MainMenu object in the toolbox?
>>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.
If it is a MenuStrip, what is the setting for RenderMode?
If it is a MenuStrip, what is the setting for RenderMode?
ManagerRenderMode
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That's the ticket! :D
By the way if you're familiar with C#, I have a question here if you fancy:
https://www.experts-exchange.com/questions/24529820/Getting-image-position-within-picturebox.html
:)