GPCore - The Gibphone API

TrayIcon.AddToMenu Method (String, Image, EventHandler)

Use this to add your own menus to the TrayIcon.

[Visual Basic]
Overloads Public Function AddToMenu( _
   ByVal String As String, _
   ByVal Image As Image, _
   ByVal EventHandler As EventHandler _
) As ToolStripMenuItem
[C#]
public ToolStripMenuItem AddToMenu(
   String caption,
   Image image,
   EventHandler onClick
);

Parameters

caption
The caption to display.
image
The Image to display.
onClick
The EventHandler of what to do when clicked.

See Also

TrayIcon Class | GPCore Namespace | TrayIcon.AddToMenu Overload List