Windows Develop Bookmark and Share   
 index > Windows Forms General > Weird - Applying visual styles!
 

Weird - Applying visual styles!

I used the application.enablevisualstyles method when using dotnet 1.1 with xp pro. I have set the control property FlatStyle to System where necessary. When I execute the application, no effects are visible and it appears with the standard (non XP) look. But when I run the application exe from another machine it works fine and does rendering and everything.

I checked the system and my comctl32.dll version 5 is located in c:\windows\system32 and version 6 is in C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.0.0_x-ww_1382d70a which looks ok too.

Can anyone help me figure out whats happenin?

Cheers 
MigrationUser 1  Monday, May 03, 2004 1:59 AM
Have you tried turning on visual styles on your computer? What does your XP look like, classic windows or the latest look and feel?
MigrationUser 1  Monday, May 03, 2004 7:35 PM
Raghavendra has posted some answers to common questions about visual styles here:
http://blogs.msdn.com/rprabhu/archive/2003/09/28/56540.aspx
MigrationUser 1  Wednesday, May 19, 2004 11:54 PM

You can use google to search for other answers

Custom Search

More Threads

• Switching forms (Closing a form and going to the next)
• Formating strings
• Group Policy Question (Software Install)
• is there an api to get the mac address of a machine
• windows click event
• I don't even know where to begin on this one...
• printpreviewcontrol
• Detect if label is displayed with ellipsis at runtime
• Items in ListView / ListBox change event does not exists
• Scrollbar on WebBrowser control in Windows Forms 2.0