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.
Related Questions
- I am/We are doing a project and have a machine in the development lab running Windows 2000/XP, can we save work to it?
- Why does my Windows Form project not use visual styles in XP even when I call Application.EnableVisualStyles?
- THE RESEARCH GRANT APPLICATION FORM ASKS ABOUT GOVERNANCE OF MY RESEARCH PROJECT. WHAT DOES GOVERNANCE MEAN?