Toolbar Images

  • Thread starter Saleh Al-Shammari
  • Start date
S

Saleh Al-Shammari

Hi All

I Have a windows from with a toolbar with ImageList set and ImageIndex is
set for every button, IN normal state everything is displayed as it should
be.

But when I add the line

Application.EnableVisualStyles();

The images on the toolbar are not displayed.

Any help would be apperciate.

Saleh
 
H

Herfried K. Wagner [MVP]

Saleh Al-Shammari said:
I Have a windows from with a toolbar with ImageList set and ImageIndex is
set for every button, IN normal state everything is displayed as it should
be.

But when I add the line

Application.EnableVisualStyles();

The images on the toolbar are not displayed.

Call 'Application.DoEvents' directly after the call to 'EnableVisualStyles'.
 

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

Top