海鸥航迹

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

导航

< 2025年4月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
4 5 6 7 8 9 10

统计

[导入]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   海天一鸥  阅读(757)  评论(1编辑  收藏  举报

点击右上角即可分享
微信分享提示