Hi all,
>>Can I set different forecolor of item on the list box control? Does anyone know the other method or activex control can to that? I would like to create a note board but it is using different color to present each note. Thank you very much ...
>>
>>Best Regards,
>>
>>Justy Chow
>No you can't do it with a list box.
Yes you can....
Define a Listbox on your form and set its controlsourcetype to 9 - popup, set its controlsource to "test"
In the load event:
DEFINE POPUP Test
DEFINE BAR 1 OF Test PROMPT "Red" COLOR ,RGB(255,0,0) STYLE "B"
DEFINE BAR 2 OF Test PROMPT "Blue" COLOR ,RGB(0,0,255) FONT "Courier new", 10 STYLE "I"
See help on define bar for more customizable properties
Walter,
>However, you can use a grid instead by setting the properties of the grid so it "looks like" a list box. The color for individual rows of the grid can be set by the DynamicBackColor/DynamicForeColor properties.