Click here to Skip to main content
15,899,026 members

Comments by junrall (Top 7 by date)

junrall 28-Jan-21 9:43am View    
Thank you for your solution! Makes total sense, once I see it. And thank you for the link... I'll read through the tutorials there!
junrall 1-Jan-11 17:40pm View    
(Durned mouse fumble.. wasnt ready to post!)
Anyways, I'll try again...
Have you seen programs that have a dropdown that lists all of the undo actions? When you select an undo item in the list the program will undo everything up to the item you selected. Something like this would be useful in what I want to accomplish and useful as a dropdown list for the user too.
junrall 1-Jan-11 17:36pm View    
Thanks Manfred,
I took a look at that link... unfortunately, I don't think that is exactly what I need.
I did come up with a work around that seems to work:
Public Sub UndoText()
While RichTextBox1.UndoActionName = "Unknown"
Me.Undo()
End While
RichTextBox1.Undo()
End Sub

The "while" will undo any and all selections prior to the last typed letter or whatever was done (paste, delete, enter, ect.). Then one last undo removes the last user action.
Works like a charm!
Have you seen programs that have a dropdown that lists all of the undo actions? When you select an undo item in the list the program will undo everthing up to
junrall 1-Jan-11 17:00pm View    
I've tried using ClearUndo before and just now tried it again in a basic project... it seems to clear the entire clipboard. I created a richtextbox then added a button that handles the ClearUndo.
I pasted some text twice into the richtextbox then clicked the button. When I look at RichTextBox1.UndoActionName there is no undo to perform. I would think that the first paste action should still be there... am I nut understanding how the ClearUndo works? Or am I using it incorrectly?

Thanks!
junrall 20-Dec-10 3:51am View    
Well... capturing and coloring the pasted text before it is actually pasted definitely sped things up! It's a good workaround... for now anyways!

Thank you Nijboer!!