开发者

Is it possible to hava an alternately colored listbox in Visual Basic 6

开发者 https://www.devze.com 2023-04-02 19:45 出处:网络
I am trying to code the listbox in such a way that all list items are alternately 开发者_如何学Pythoncoloured. But I realised that there is no property for this. Please help me in this. Thanks in adva

I am trying to code the listbox in such a way that all list items are alternately 开发者_如何学Pythoncoloured. But I realised that there is no property for this. Please help me in this. Thanks in advance.


You need owner-drawn ListBoxes and subclassing. If you hunt around you can find a number of projects that have done the work for you already.


i don't think you can color the items but you can change the font color and background color and you can always make your own custom control

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号