Click here to Skip to main content
15,908,254 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to display an email in an windows application that contains hyperlinks in it in a rich textbox... all are getting populated fine but the problem is, on displaying it is showing not the link labels but the entire URL of the hyperlinks. Is there any way to display the mail in rich textbox in the same way it is displayed in the email.. Is there any property which I need to change.?

Thanks in Advance
Jashobanta Chakraborty
Posted
Comments
Sergey Alexandrovich Kryukov 30-Apr-12 19:56pm    
Is it WPF or Forms? There is a wonderful CodeProject component for Forms...
And tag it. You are interested the most.
--SA

1 solution

If you are using System.Windows.Forms, the perfect component (instead of using rich text box directly) is this HTML renderer offered in this CodeProject article:
A Professional HTML Renderer You Will Use[^].

This approach is really good. The author introduces special URI scheme so you can use embedded resources of any kind, such as images, etc.

For WPF, you probably can use another one, but I did not test it:
WPF HTML Supported TextBlock[^].

—SA
 
Share this answer
 
Comments
VJ Reddy 30-Apr-12 20:15pm    
Good references. 5!
Sergey Alexandrovich Kryukov 30-Apr-12 21:04pm    
Thank you, VJ.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900