Main Menu Item
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
The MenuItem Class does not automatically support icons :(. You have to set .OwnerDraw() property to true, and handle the MeasureItem (setting the size of the item) and DrawItem (drawing the item) events. Instead of doing that for every MenuItem on your form, you can make a class inheriting from MenuItem, that automatically sets OwnerDraw to true, and draws the item with it's icon. Here is an example someone has posted to this site. Working with OwnerDraw Menus in VB.NET