Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 332
  • Last Modified:

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
0
Unimatrix_001
Asked:
Unimatrix_001
  • 8
  • 6
1 Solution
 
saraganiCommented:
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
 
Unimatrix_001Author 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
0
 
Bob LearnedCommented:
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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

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

            Application.EnableVisualStyles();

0
 
Unimatrix_001Author 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
0
 
Bob LearnedCommented:
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
 
Bob LearnedCommented:
Is that a MenuStrip or a MainMenu object?
0
 
Unimatrix_001Author Commented:
It is a MenuStrip, I don't appear to have a MainMenu object in the toolbox?
0
 
Unimatrix_001Author 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.
0
 
Bob LearnedCommented:
If it is a MenuStrip, what is the setting for RenderMode?
0
 
Unimatrix_001Author Commented:
If it is a MenuStrip, what is the setting for RenderMode?
ManagerRenderMode
0
 
Bob LearnedCommented:
Do you need RenderMode = System?
0
 
Unimatrix_001Author Commented:
That's the ticket! :D
0
 
Unimatrix_001Author Commented:
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
 
Unimatrix_001Author Commented:
:)
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 8
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now