Why does my Windows Form project not use visual styles in XP even when I call Application.EnableVisualStyles?
If you set a property on a Windows Forms control which forces the creation of the control (e.g. the SelectedIndex property on the ComboBox class), the control (and perhaps the rest of the form) will not render with visual styles enabled.
The resolution is to place the code that sets these properties in an event handler for the Load event on the form/control.
Comment Notification
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using