Undo Example VB

This example illustrates how to enable Undo functionality in an application.

Private Sub Form_Load()
    'UndoLevels must be set at form load to allocate undo buffers
    ImgEdit1.UndoLevels = 1
End Sub

Private Sub cmdUndo_Click()
    'The Undo method will undo the last imaging operation
    'performed.
    ImgEdit1.Undo
End Sub