Images on a toolbar dissappear when enabling visualstyles

  • Thread starter Thread starter Benny Raymond
  • Start date Start date
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
 
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
///
 
Back
Top