Buttons in toolbar not displayed in XP

  • Thread starter Thread starter BS
  • Start date Start date
B

BS

Hello everybody
On an MDI form, I have some owner drawn menus with pictures.
I added a toolbar , and added a couple of toolbarbutton with pictures for a
few of them. The toolbar is flat, displaying images from an image list with
size of 16*16
The images shows in Windows 2000 but not in Windows XP.

Can somebody tell what I missed ?

Thank you
 
BS,
In your Sub Main, call Application.DoEvents after you call
Application.EnableVisualStyles.

Something like:

Public Class MainForm

' normal designer code & your other form code

Public Shared Sub Main()
Application.EnableVisualStyles()
Application.DoEvents()
Application.Run(new MainForm)
End Sub

End Class

Hope this helps
Jay
 
Back
Top