Quote Originally Posted by AAraya View Post
I have a ComboBox loaded with items. One of the items is a separator bar. I don't want the user to be able to select this item. How would you prevent them from doing so? Ideally I'd like some way to make it non-selectable or disabled (is there an API that does this?).

Sample CB items list
=========
1
2
3
--- <--- Here's the separator bar
4
5
6


What I'm currently doing is changing the user's selection when they select the separator bar item. It works but it's a bit kludgey.

TIA for your thoughts.

(BTW - This is a VBCCR16 control so I do have additional properties and methods available to me over the standard VB6 version but I don't think it makes a difference for this issue.)
Could you post your code and explain what you mean by "kludgey"?