tags:

views:

21

answers:

1

Hi I have a form that uses checkbox with the appearance set to button and it works well and looks good on Win7 but on XP it doesn't, you cannot tell if they are up or down...

so can I make the form look as it does on W7 regardless of which OS its running on?

I have tried this.EnableVisualStyles = true; and setting it to false makes the form look crap in Win 7...

cheers

A: 

This is not possible. EnableVisualStyle only enables the OS-specific rendering (that is, non "classic" rendering). The buttons are always rendered OS-specific.

If you want OS-independent rendering, you have to use a control libary like Infragistics or Nevron. But I don't think this is a good idea anyway. Your application should look like it is integrated in the os theme in my opinion.

testalino