How to Use More than One Type of Font in Picture Box (81220)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
This article was previously published under Q81220 SUMMARY
The text box control in Visual Basic for Windows displays the entire
text box with either the FontUnderline, FontBold, FontItalic, or
FontStrikethru fonts, but with only one font at a time. This behavior
is by design.
However, you may want to display a box with all four fonts at the same
time with separate words displayed in different fonts. Below is an
example of displaying the fonts FontBold, FontItalic, FontStrikethru,
and FontUnderline fonts in a picture box control in Visual Basic for
Windows to work around the limitation in text boxes.
| Modification Type: | Major | Last Reviewed: | 12/12/2003 |
|---|
| Keywords: | KB81220 |
|---|
|