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
 
Back
Top