How to add a custom item to the main
Internet Explorer menu: VB.NET, C#

Add-in Express™
for Internet Explorer® and Microsoft® .net

Add-in Express Home > Add-in Express for Internet Explorer > Online Guide > Adding a custom item to IE main menu

Adding a menu item to the IE main menu

The table below gives you a quick snapshot of the item types that you can add to the main menu of Internet Explorer in different IE versions.

  Provider

IE 6

IE 7

IE 8

Other aspects

  • Internet Explorer

Yes

Yes

Yes

You can add a button and / or menu item. No checked menu items. No icons for menu items.

  • Add-in Express

Yes

Yes

Yes

Icons for menu items, checked menu items

How to add a custom item to the IE main menu

How to add a custom item to the IE menu - Flash video

Add-in Express allows customizing any top-level item in the IE main menu. You choose the Add Main Menu command of the IE module in the context menu of its designer surface; the command adds an ADXIEMainMenu component onto the module. You select the component and, in the Properties window, activate the editor for its Items property. Then you add your controls to the editor:

Adding a custom item to the IE main menu

The settings above produce controls in the Edit menu.

Custom menu items in the IE Edit menu

When IE creates its main menu, ADXIEMainMenu receives the OnCreateMenu event. Then all top-level menu items receive the OnCreatePopupMenu event. Also, just before a menu item is created and shown, it receives the OnCreateMenuItem event.

Note. When an icon shows up in the main menu of IE 6, IE 7, and IE 8, the checked items displayed in the same popup will lose their style in Vista. This doesn't relate to context menus in IE8.

It's not possible to create a custom top-level menu item.

Adding a custom menu item in IE6, IE7 and IE8

You use the item created in Adding a custom button to IE toolbar to add a custom menu item to the IE Help or Tools menu. To prevent showing the button in IE7 and IE8, set the ShowInToolbar property shown in the screenshot below to false.

Adding a custom IE menu item

The only property required to display a menu item is Caption. The HelpText property specifies a string shown in the Status Bar when you hover the mouse over the custom menu item.

A custom menu item added to IE Help 

It is not possible to show an icon for the menu item created by an IE command. But see Adding a Custom Item to the Main Menu.

Creating custom IE toolbars <<

>> Building Explorer bars and context menus

Back to Add-in Express for Internet Explorer homepage

Have any questions? Ask us right now!