|
-
April 18th, 2008, 07:30 AM
#1
Pasting text from webpage to RichTextBox
When you paste text from webpage to RTB, it loses it's formatting: font style, font size, bold/italic...
Is there a way to fix this?
I'm trying to catch Ctrl ^ v and extract the format data from Clipboard. But all I can google is posts doing the reverse of that (only allowing plain text in rtb).
Please help.
Edit: Ok, after a very long google run, I found out RTB doesn't support html format. I came across DHTML Control - DHTMLEdit: http://forums.microsoft.com/MSDN/Sho...13197&SiteID=1
The control ok, except it's lacking basic rtb features: BorderStyle, ScrollToCaret...
So my new question: Is there a way to combine a DHTML and RTB? I'm new to overriding.
Last edited by SomE; April 21st, 2008 at 07:19 AM.
-
May 1st, 2008, 10:45 AM
#2
Re: Pasting text from webpage to RichTextBox
Although DHTMLEdit has no ScrollToCaret property, you can try this:
Code:
DHTMLEdit.Select(DHTMLEdit.Text.Length, 1)
Hope it helps.
The difficulty is that you have no idea how difficult it is.
.Net 3.5/VS 2008
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|