Click here to Skip to main content
15,667,885 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi,

I am working in VB.Net Window Form Application. I have a richtextbox box in which i have format some text as BOLD or ITALIC or Different Font Size.

Now,
Problem 1 - How do i get all the text with their style. I want to save complete string (with style) in database.
Problem 2- How to show all the text with their style in web browser control.

Thanks
Posted
Updated 3-Apr-20 1:57am
v2
Comments
Sergey Alexandrovich Kryukov 1-Aug-11 9:21am    
Tag it! WPF, Forms, what? Why would you mix up rich text with HTML (which you can show in your web browser control)?
--SA

1 solution

Problem one is easy - use the RichTextBox.Rtf[^] property. This returns a string you can save in the usual way.

Problem 2 is harder, but there are a number of places to look
Codeproject: Writing Your Own RTF Converter[^]

MSDN: Converting between RTF and HTML[^]
 
Share this answer
 

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