0

I have tried if (e.Control && (e.KeyCode == Keys.Z)) RTB.Undo(); and .Redo() but nothing reflected in the richtextbox. I tried with sendmessage too. Any help would be great.

Milee
  • 1,191
  • 1
  • 11
  • 29

1 Answers1

0

i tried id and it works correctly.

if (e.Control && e.KeyCode == Keys.Z)
                richTextBox1.Undo();

did you enable the KeyPreview Property of current form for start catching key downs?

talking about this property. enter image description here

Lütfullah Kus
  • 302
  • 1
  • 12