Rich Text box and Insert text at last location
I was asked to make sure when something is pasted into a Rich text box, the text when where their curse was, not at the end or start or the text.

I thought, yeah that should be straight forward, but looking around and trying a few thing I found that it harder than I thought. It does not help that the application is a winform, so outdated.

But I have found a way and its really simple and I thought I would share my simple findings!!

Click the location within your Rich text box, that you want to insert an item too.
Then click a button or call a method and within this method do the below code.

As you can see within the code, its a few simple lines of code.
In the example I only show text, but you can add nearly anything.

Created: 05/03/2018 Total Comment: 0


(Not Displayed)
Human validation
Enter 5699 number, before submitting to confirm your human
[Home] [All Blogs] [Contact] [Me]