Represents a class that inherits from the System.Windows.Forms.MenuItem class and
provides custom drawing, which is dependent on the current OS appearance settings.
This example shows how to create a menu item:
Dim item As OwnerDrawMenuItem = New OwnerDrawMenuItem("New Item")
' set an image
item.Image = imageList1.Images(0)
' add it to a MainMenu object
Me.Menu.MenuItems(0).MenuItems.Add(item)
OwnerDrawMenuItem item = new OwnerDrawMenuItem("New Item");
// set an image
item.Image = imageList1.Images[0];
// add it to a MainMenu object
this.Menu.MenuItems[0].MenuItems.Add(item);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2