Classic / XP theme

  • Thread starter Thread starter Mark Rae
  • Start date Start date
M

Mark Rae

Hi,

I'm writing a WinForms app in C# and would like to alter the button images
on the toolbar depending on whether the user is using the WinXP theme or the
Classic theme. Changing the image list is the easy bit, but does anyone have
any code for detecting which theme is currently in use?

Any assistance gratefully recevied.

Best regards,

Mark Rae
 
Further to this, does anyone know of any way to make the standard VS.NET
Menu control look more attractive when running under one of the XP themes?
E.g.

1. Menubar and "classic" toolbar running on Windows Classic theme:
http://www.markrae.myby.co.uk/ClassicClassic.jpg

2. Menubar and "XP" toolbar running on Windows Classic theme:
http://www.markrae.myby.co.uk/ClassicXP.jpg

3. Menubar and "XP" toolbar running on Windows XP theme:
http://www.markrae.myby.co.uk/XPXP.jpg

With option 3, the menu backgrounds are clearly visible, which looks awful.
I had a similar problem with toolbars but was able to get round this by
setting the TransparentColor property of the toolbar's underlying ImageList
to the same as the toolbar itself i.e. Silver (192,192,192) - there seems to
be no way of doing this for menu controls.
 

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

Back
Top