How to add a custom item to the main
Internet Explorer menu: VB.NET, C#
Add-in Express™ |
|
Provider
|
IE 6 |
IE 7 |
IE 8 |
Other aspects |
|
Yes |
Yes |
Yes |
You can add a button and / or menu item. No checked menu items. No icons for menu items. |
|
Yes |
Yes |
Yes |
Icons for menu items, checked menu items |
How to add a custom item to the IE main menu
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:

The settings above produce controls in the 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.

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.
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.