VB 2005 VisualStyles problem

nkarnold

New member
Joined
Aug 18, 2006
Messages
2
Programming Experience
10+
My application seems to be ignoring Enable XP visual styles, which is ticked on in the application properties.

the Toolbar and Menubar, which appear the nice looking shaded blue appear like that whilst in the IDE, but when I run the app, they both go to boring grey.

In the application.designer.vb self generated file, it does have
VB.NET:
Expand Collapse Copy
Public Sub New()
MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
Me.IsSingleInstance = false
Me.EnableVisualStyles = true
Me.SaveMySettingsOnExit = true
Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
End Sub
If i create a brand new application, just as a test and drop the two controls into that, they appear with visual styles.

So it looks like its something to do with my project, but i can't find out where or why.

any help appreciated.

Cheers

Nig
 
Last edited by a moderator:
You could have changed the RenderMode for ToolStrip and MenuStrip to 'System', default is 'ManagerRenderMode', but you see the difference in Designer also so there would have to be code doing it.
 
Back
Top