开发者

Only enable visual styles for specific controls

开发者 https://www.devze.com 2023-03-07 03:43 出处:网络
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?

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

精彩评论

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