Showing icons/images on your toolbar (Bugfix for XP Style)

Submitted on: 1/2/2015 5:51:00 AM
By: Mathieu (from psc cd)  
Level: Beginner
User Rating: By 4 Users
Compatibility: VB.NET
Views: 673
     This article will help you (hopefully) when you want to use icons on your toolbars using the XP style.

				If you want to use XP style in your apps, you can simply use the EnableVisualThemes property (application.EnableVisualThemes()) 
But there is a small bug in 2003.
If you want to use a toolbar with (xp) icons, those icons will not appear at runtime.
This code will help you:

[code] Sub new()
'Enable XP Look
Application.DoEvents() frmMain)
end sub

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this article (in the Beginner category)?
(The article with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)

Other User Comments

 There are no comments on this submission.

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular article, please click here instead.)

To post feedback, first please login.