XP visualStyle

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
 
M

Mick Doherty

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top