By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,695 Members | 1,317 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,695 IT Pros & Developers. It's quick & easy.

Disable visual styles

P: n/a
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 von Cossel I of Germany
Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Alvo von Cossel I wrote:
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
Nov 17 '05 #2

P: n/a
hi,

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

--
Alvo von Cossel I of Germany
"John B" wrote:
Alvo von Cossel I wrote:
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

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.