RichTextBox Control


The RichTextBox is a additional VB component that comes with Visual Basic Professional and Enterprise Edition. This control allows your program to create formatted text (i.e. bulleted, bold and coloured text) in RTF (Rich Text Format). This file format can then be read by other programs like WordPad and MS Word. It could be use in two main ways.

1) You could program your application like a Word Processor, which would give your user much more freedom than just plain text

2) Use the control in an application where it would be beneficial to the user if you colour certain portions of text. E.G in a HTML editor, where it makes tags one colour, and text another.


To add the Rich Text Box control to your project click Project|Components. Check the box next to Microsoft Rich TextBox Control. Click OK



If you will be installing a program using the RichTextBox control, you need to distribute the following files:
RichTx32.ocx - 200KB
RichEd32.dll - 171KB

You might also like...


About the author

James Crowley

James Crowley United Kingdom

James first started this website when learning Visual Basic back in 1999 whilst studying his GCSEs. The site grew steadily over the years while being run as a hobby - to a regular monthly audien...

Interested in writing for us? Find out more.


Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are only 3 numbers of interest to a computer scientist: 1, 0 and infinity”