How To Display Text on a Dithered Background in a TextBox (174301)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Control Creation Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
This article was previously published under Q174301 SUMMARY
When a dithered color is selected as the background of a TextBox, the
background around the text is displayed as a different, solid color when
the display is set for 256 colors or less. To work around this limitation,
you must hook the WM_CTLCOLOREDIT message and set the text background color
to TRANSPARENT. This is not a trivial alternative, and using a solid
background color is recommended if at all possible.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
168795
: How To Hook Into a Window's Messages Using AddressOf
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbhowto KB174301 |
---|
|