Simple VB.NET Notify Icon with Panel Application - Context Menu (Page 4 of 6 )
Next, drag the Context menu from the tool box to the form. Again, this control will be displayed on the component tray. The default name for this control is ContextMenu1; change this name to cmn for ease of use in coding. Select the context menu and you will see the context menu item at the top most corner of your Form.
Select the Menu and press enter. A menu will pop out as in the figure below:
Type &Exit, press enter.
In the next Menu Item
Type Panel&1 (shortcut key: Alt +1)
Type Panel&2 (shortcut key: Alt +2)
Select the Panel1 context menu item and change its name to pan1 (for ease of use).Do the same for Panel2.
We are now done with the context Menu. Next, we have to link the context menu with the Notify Icon. To do this, select the Notify Icon; in its property menu, click the drop-down box of Context Menu. You will be provided with the name of the context menu you’ve just created. Select it and the design part is over.