海鸥航迹

学习之笔记,好文之收集。

导航

[导入]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.


文章来源:http://blogs.msdn.com/csharpfaq/archive/2004/04/28/122673.aspx

posted on 2004-09-22 09:34  海天一鸥  阅读(748)  评论(1编辑  收藏  举报