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!
精彩评论