|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Finding Bold Text in RichTextboxFinding Bold Text (or other formatting attributes) in RichTextbox .
Is it possible to find and select bold text by code within the text of a RichTextbox? What I want is to manipulate the text into HTML code. Replace the Bold text with <b>This is the bold text</b> before I save it to an HTML file. TIRislaa I would read the RTF code to find the bolding. There is a property to
either read the text or read the RTF code in a rich text box. Each section of special text is preceded with a header that describes the font, color, bold, italic, etc., and is followed by a space. When the bold is turned off, or any other change in the text layout, there is another header for the next section of text. The bold value is "/b". Bold is turned off when the next header section does not have a "/b" in the formatting string. You have to read the data and keep track of semaphores for the text properties that you want to track. Was it on, and now it's off, and the like. There may be a ".NET" way of doing it, but when I moved my project from VB6 to .NET, I didn't have to change my old parsing code. Hope the idea helps. Shane plz send me the code for this subject
From http://www.google.co.in/url?sa=t&source=web&ct=res&cd=9&ved=0CCgQFjAI&url=http://www.developmentnow.com/groups/post.aspx?newsgroupid=38&threadid=918358&rct=j&q=using+find+method+find+the+number+of+boldtext+in+richtextbox+in+vb.net&ei=iYKwS-D1N46mrQen6oGnAQ&usg=AFQjCNFmz3PUi9OtYTeagLPy8KreW3jpJg
Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/
Am 29.03.2010 12:38, schrieb priya:
> plz send me the code for this subject Would you be so kind to quote what you are referring to if> the message is more than three years old? Thx. -- Armin
Computer Name - Best way to obtain this VB.Net
Settings in VB.NET/WinForms How to Add *AND* Process Checkbox Column in a DataGridView? ERROR: The state information is invalid for this page and might be corrupted Creating A Movie Player? WebBrowser BeforeNavigate2 - What is pDisp? How to create an IDE? A Simple SQL Result displayed into a TextBox Keeping Code Snippets? Exit Button |
|||||||||||||||||||||||