Wrox Programmer Forums
.NET Framework 3.5 For discussion of the Microsoft .NET Framework 3.5.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Framework 3.5 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 8th, 2008, 02:12 AM
Registered User
Join Date: Oct 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to bettiahamit Send a message via Yahoo to bettiahamit
Default Formatting inside Rich Text Box

Formatting inside Rich Text Box
Is there a way I can make certain sections of text formatted in a rich text box? Like parts of it are bold, underlined, different sizes or colors, all in the same Rich Text Box.

I'm making a program that will use an HTML view and a Standard view, and I have no way to format the standard view. So, in the HTML view, it would show "<B>This is bold.</B> <I>This is Italic.</I>", but in the standard view it would show "This is bold. This is Italic."

help me plz how??

Old November 10th, 2008, 06:04 AM
samjudson's Avatar
Friend of Wrox
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts

Well the RichTextBox support RTF, so if you can convert your HTML to RTF then your problem is solved.

Alternatively you can use the UI control to highlight and change bits of text (using RichTextBox.SelectionFont) manually.

/- Sam Judson : Wrox Technical Editor -/

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rich Text Box aliirfan84 ASP.NET 2.0 Professional 1 February 23rd, 2007 06:35 AM
Rich Text Box spike010101 Pro VB 6 1 September 29th, 2004 02:37 AM
RICH TEXT BOX priyanka123 VB How-To 0 May 6th, 2004 01:46 PM
Saving Rich Text Box Formatting snowy0 VB.NET 2002/2003 Basics 5 February 29th, 2004 02:11 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.