Undo short cut

Hello,

I want to use the GoUndoManager to do undo/redo and have to call GoView.Undo and GoView.Redo methods programmatically. When Ctrl+Z or Ctrl+Y are pressed, undo or redo is invoked automatically.

My question is how to block Ctrl+Z and Ctrl+Y and do nothing from my windows form application.

Thanks advance.

Huan

Override the OnKeyDown method in the derived GoView class, this problem is solved.

Huan
<span style=“font-size: 12pt; font-family: “Times New Roman”;”>

Also:

  goView1.DisableKeys |= GoViewDisableKeys.Undo;

Walter,

Thank you for your help.

Huan