ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   changing foreground color of listbox w/o losing selections (https://www.excelbanter.com/excel-programming/297853-changing-foreground-color-listbox-w-o-losing-selections.html)

PatFinegan[_13_]

changing foreground color of listbox w/o losing selections
 
This is a cosmetic question relating to UserForms. I notice that
disabled listbox in Excel 2003 does not change appearance, in contras
to, for example, a command ComboBox or TextBox, which "greys" the text
When I use ForeColor = &H80000011 (the color code for "disabled text")
I lose my listbox selections. I can of course keep track of th
selections and then re-select them, but I can't help feeling that ther
is something simpler -- e.g., an API patch to make the cosmeti
treatment of disabled listboxes similar to that of other controls. An
and all ideas greatly appreciated.:

--
Message posted from http://www.ExcelForum.com



All times are GMT +1. The time now is 05:41 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com