Image Gone when apply Application.enablevisualstyles()

  • Thread starter Thread starter A-PK
  • Start date Start date
A

A-PK

Hi,

I found that when I apply application.enablevisualstyles. all the button
image and listview image are not shown up.

pls help me, anywhere to show the image when i apply that features

Thank you
 
* " A-PK said:
I found that when I apply application.enablevisualstyles. all the button
image and listview image are not shown up.

Call 'Application.DoEvents' directly after the call to 'EnableVisualStyles'.
 
Does this happen only with EnableVisualStyles set to true? As Herfried
pointed out the first thing to do is Application.DoEvents right after the
EnableVisualStyles.

However, I would recommend you DO NOT use Application.VisualStyles as there
are a number of problems that it causes with code. Weird behavior with
images and image size (Toolbars especially) is very common as well as
problems with multi-threaded code using the Application object.

Using a manifest file instead and none of these problems occur...

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
 
Back
Top