MarkMove Example VB

In this example, when the MarkMove event fires, the Undo selection on the Edit menu is updated so it indicates the action the Undo method will perform if the user invokes it.

Private Sub ImgEdit1_MarkMove(Button As Integer, Shift As Integer, x As Single,
 y As Single)
    'This event could be used after an annotation mark is moved
    'to change the caption on an undo menu selection to indicate
    'what action undo will take.
    mnuEditUndo.Caption = "Undo Annotation Move"
End Sub