15,899,026 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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!!
junrall
17-Dec-10 1:35am
View
Thanks for the feed back!
I too was thinking that it might be best\easier to process the text before it was actually pasted.
Though, I did take a look at Salvador's NRtfTree... I understand some of and should be able to get some ideas there. LOL... not only do I have to decipher his code, I'll have to learn a little Spanish too! Ah well, the learning process is never ending!
junrall
15-Dec-10 23:16pm
View
Yep, that's exactly what I did. I inherited the RTB. However, I should have been more clear about what type of "paste" I was trying to capture... which was CTRL+V
What I did discover is that richtextbox1.paste() is captured, but not CTRL+V. I had thought that CTRL+V was the same as richtextbox1.paste()... it is not.
Some how they are different.
I did end up using OnKeyDown event to watch for CTRL+V which is fine... it would have been nice to be able to test for both types of "paste" in one shot.
No big deal... it was kind of a fun discovery!
Show More