开发者

Only enable visual styles for specific controls

In Windows Forms visual styles can be enabled for all controls by callin开发者_如何学Cg Application.EnableVisualStyles(), but is it possible to only enable visual styles only for specific controls?

I want to disable visual styles for MonthCalendar in order to control the look accross operating systems, but want e.g. Button to have the look of the theme in the operating system.


Going by MSDN documentation, you might have to actually disable visual styles for all controls to achieve this, especially for MonthCalendar control (check the Note section).

Hope this helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜