Mustafa Temiz
Mustafa Temiz

Reputation: 326

Only enable visual styles for specific controls

In Windows Forms visual styles can be enabled for all controls by calling 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.

Upvotes: 1

Views: 1861

Answers (1)

Vaibhav
Vaibhav

Reputation: 1166

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!

Upvotes: 1

Related Questions