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