Disabling visual styles for a specific form/control
Hello!
Is it possible to disable XP themes for a specific form or control in .NET Framework 1.1?
I am developing a custom control and I have no control over the user (if he calls Application.EnableVisualStyles() or not) but I'd still like to be sure that my control is displayed properly.
Best regards!
Marcin
what do you mean by "no control over the user"?
I think as long as you did not set the flatstyle of the control(like button, etc) to system, the visualstyles will not take effect.
Yes, as for controls that support the FlatStyle property, you are right.
However, some GUI controls have problems with XP themes (e.g. TabPage) and do not allow me to alter their behaviour and look easily.
Best regards!
Marcin