Buttons in toolbar not displayed in XP

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
 
J

Jay B. Harlow [MVP - Outlook]

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
 

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