Images on a toolbar dissappear when enabling visualstyles

B

Benny Raymond

Has anyone else had this problem?

I enable visual styles
Application.EnableVisualStyles()

When I do this, all of the images on my toolbar stop showing up.

Also, is it possible to make an image list auto update when the images
for that image list have changed?

~Benny
 
M

Mick Doherty

I enable visual styles
Application.EnableVisualStyles()

When I do this, all of the images on my toolbar stop showing up.

Follow Application.EnableVisualStyles() with Application.DoEvents().
Make sure you call these before any ui is created. i.e. in sub main

\\\
Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(New Form1)
End Sub
///
 

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