VB3 Display Multiple Foreground Text Colors in VB List Box (108811)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q108811 SUMMARY
To set the foreground and background color of a list box control, set the
ForeColor and BackColor properties at either design time or run time. All
text in a list box uses the color set by the ForeColor property. The text
is printed against a background color set by the BackColor property.
Visual Basic doesn't directly support the display of text of different
colors simultaneously in the list box. This article describes how to
display words of different colors simultaneously in a list box by using an
indirect technique.
REFERENCES
- "Microsoft Windows Programmer's Reference"
Modification Type: | Major | Last Reviewed: | 10/29/2003 |
---|
Keywords: | kb3rdparty KB108811 |
---|
|