undo doesnt work

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

im trying to use the undo function of the richTextBox but its working wrong.
when im pressing the "undo" button all the text of the richTextBox is
deleted (even if my last action was to delete only one char)
whats wrong??

For i = 0 To 9
If richTextBoxArr(i).Focused Then
If richTextBoxArr(i).CanUndo = True Then
richTextBoxArr(i).Undo()
richTextBoxArr(i).clearUndo()
Exit For
End If
End If
Next

thanks
 
i need to know which textBox is in focus because i have an array with some
textBox,
so first im getting to the right richTextBox and then im doing
"undo"...which is not working
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top