Privacy Policy
Best viewed with:

☕ Buy me a coffee
Mick Dohertys' .net Tips and Tricks - Tips / ComboBox
OwnerDraw ContextMenus do not ownerdraw when assigned to a ComboBox.

With a little help from NativeWindow we can easily overcome this bug.

  • VB Code
  • C# Code


Create an Image Combo.

The following class modifies the Item collection to return a collection of Custom items.
The Property Browser uses the Collection Editor rather than the StringCollection Editor.
The DrawMode property has been hidden, since this property should not be changed.

  • VB Code
  • C# Code

RightToLeft support has not been implemented in order to keep things simple, but I'm sure you can figure that out.