'We assume that the GdViewer1 control has been properly integrated.
Friend WithEvents GdViewer1 As GdPicture14.GdViewer
'Add the event.
AddHandler GdViewer1.RegionSelectedByUser, AddressOf GdViewer1_RegionSelectedByUser
'Define the event.
Sub GdViewer1_RegionSelectedByUser(ByVal RegionID As Integer) Handles GdViewer1.RegionSelectedByUser
'Do your stuff here.
End Sub
//We assume that the GdViewer1 control has been properly integrated.
//Add the event.
GdViewer1.RegionSelectedByUser += GdViewer1_RegionSelectedByUser;
//Define the event.
void GdViewer1_RegionSelectedByUser(int RegionID)
{
//Do your stuff here.
}