How to show menu item with icon AND text in WinForms system menu
While adapting the answer of ygoe , I discovered that it's possible to add an icon to the menu. I tried and succeeded in doing so by using this code for a text-only item: var item = new MenuItemInfo { cbSize = (uint)Marshal.SizeOf(typeof(MenuItemInfo)), cch = (uint)label.Length, dwTypeData = label, fMask = 0x2 | 0x10, // MIIM_ID | MIIM_TYPE fState = 0x0, // MFS_ENABLED fType = 0x0, // MFT_STRING wID = id }; InsertMenuItem(hMenu, 0, true, ref item); For an icon-based item, I changed fMask and added hbmpItem like this: var item = new MenuItemInfo { cbSize = (uint)Marshal.SizeOf(typeof