list box text

B

Brad Pears

I have a multi-select textbox and when it is set to disabled, I want to set
the weight of the text in the text box to be extralight. Currently when you
disable a text box, the text remains regular or bold - whatever it was set
to - just the background changes to a "gray" colour.

I tried setting the textboxes fontweight in code and it did not seem to work
at all. I must be missing the proper syntax I tried as follows... No errors
generated - jsut did nothing...

listbox1.fontweight = 50 ' set to extra light (50%)
listbox1.fontweight = 150 ' set to bold (150%)

I did not see any of the "vb" constants to use... ie vbBold or vbExtraLight
etc...

thanks Brad
 
Top