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