Windows Develop Bookmark and Share   
 index > Windows Forms General > Application.EnableVisualStyles()
 

Application.EnableVisualStyles()

Dear All,
I have developed an application in windows2000 where i include
Application.EnableVisualStyles();
in C#.But the icons on the buttons of the toolbar doesnt appear in WindowsXP when this line is included.But it works in other OS such as WindowsServer2003
When that line (Application.EnableVisualStyles()) is commented  icons are appearing in WindowsXP

Any help is appreciated
Thanks

SCJ  Friday, December 30, 2005 4:35 AM

This is a bug in .NET 1.1.

Have a look at the following post: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=8021&SiteID=1

David M. Kean  Saturday, December 31, 2005 8:47 PM

Application.DoEvents(); should help in this case.

-Jay

 

MeetJayBlack  Friday, December 30, 2005 4:47 AM

This is a bug in .NET 1.1.

Have a look at the following post: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=8021&SiteID=1

David M. Kean  Saturday, December 31, 2005 8:47 PM

You can use google to search for other answers

Custom Search

More Threads

• Clipboard and Thread
• Need help/suggestions reading Adobe XMP image metadata
• Using VB 2008 How does one Move from Field to Field Using Enter Key ?
• Design Question - Offline Data Entry Storage & Upload
• Gantt Chart
• menu
• DataGridView - gray column at left
• Shortcut for ToolStripMenuItem
• ComboBox in a Datagrid setting itself to NULL... Please help!
• Performance Timer tick and Scheduled task