Difference between Text Box Control and Rich Text Box Control
Differences
Text Box Control is used to take the input from the user and also used to display some information to the user. Rich Text Box also have features like Text Box Control, but Rich Text Box Control have some additional features.
Rich Text Box Control have so many properties which are useful to format text with in the control. Rich Text Box is used to load Rich Text Format (RTF) files.
Usage
If required to take the normal input from the user, then simply go for the Text Box Control. If want to give an input like Rich Text Document, then simply go for Rich Text Box.
The properties in properties window can be set. The following are the some of the properties of the Rich Text Box Control.
1.Back Color and Fore Color
Description
Back Color is a property which is used to set a color for background of the control.
Fore Color is used to set the foreground color means Font Color.
2.Height, Width and Border Style
Description
Height property is used to set the height of the Control and Width is used to set the width of the Control. Border Style Property is used to set the style of the border.
There are three values to set the border style.
1.FixedSingle
->for single line border
2.Fixed3D
->for 3D border
3.None
->for no border
3.Zoom Factor
Description
Zoom Factor property is used to display text in minimum size to larger size as per requirement.
4.Maximum Length
Description
Maximum length for text can be set in Rich Text Box control.
4.Read Only
Description
If Read Only property is set as TRUE, then the user is not allowed to perform any write operation on the Rich Text Box.
These are the some of the properties of Rich Text Box. Instead of this properties, text can be scrolled using Scroll Bars.Shortcut keys can be enabled or disabled and also format the font using Font property. The file can also be saved.
The following figure shows you how the Text Box and Rich Text Box looks like.