I am developing a wholly new user interface to the PDFCreactiveX control. So I have my own custom print, properties, page setup, etc. dialogs.
My question is, how do I make it so that users can undo the changes they make using my dialogs? Is there a way to insert a custom Undo level?
Ben Dilts
Custom undo events?
Hello Ben,
You can use the Undo command to undo the last actions. Here is a VB code on calling the Undo function you can definitely translate it to C#
Hope this helps.
You can use the Undo command to undo the last actions. Here is a VB code on calling the Undo function you can definitely translate it to C#
Code: Select all
With PDFCreactiveX1
If .UndoLevels > 0 Then
.Undo
.Refresh
Else
MsgBox "No more actions to Undo"
Exit Sub
End If
End With