'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
'Add the event.
AddHandler GdViewer1.ClickMenu, AddressOf GdViewer1_ClickMenu
'Define the event.
Sub GdViewer1_ClickMenu(ByVal MenuItem As Integer) Handles GdViewer1.ClickMenu
MessageBox.Show("The clicked menu item: " + MenuItem.ToString(), "GdViewer1.ClickMenu")
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//Add the event.
GdViewer1.ClickMenu += GdViewer1_ClickMenu;
//Define the event.
void GdViewer1_ClickMenu(int MenuItem)
{
MessageBox.Show("The clicked menu item: " + MenuItem.ToString(), "GdViewer1.ClickMenu");
}