XP visualStyle

  • Thread starter Thread starter R.A.F.
  • Start date Start date
R

R.A.F.

Hi,

1. How can i detect if Windows XP has its Visual Style enabled or not ?
2. how can i use this Visual Style on my custom control ? I mean how to
make them look like XP control.
3. if visual style is disabled, how can i draw control according to old
standard (flat or 3D) ?

thanks a lot,

RAF
 
For Visual Styles:
VS2005
Take a look at the System.Windows.Forms.VisualStyles class.

VS2002/3
You'll have to use InterOp.

Without Visual Styles you can use the ControlPaint class for standard
borders.
 
Back
Top