Disable visual styles

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi,

i have an app with a lot of stuff including an optios form. 1 of the options
is disabling the xp visual styles. i know how to enable them but not how to
disable them. has anyone got an solution to my problem?
 
Alvo said:
hi,

i have an app with a lot of stuff including an optios form. 1 of the options
is disabling the xp visual styles. i know how to enable them but not how to
disable them. has anyone got an solution to my problem?
There is a bug in framework 1.1 where enablevisualstyles does not work
if you have an imagelist or any control that contains an imagelist (or
some such) IIRC.
To get around this, try

Application.EnableVisualStyles();
Application.DoEvents();

This gets around it for me.

I hope this was what you are asking ;)
JB
 
hi,

thanks for the help but i wanted to disable the visual styles, not enable them
 

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