all groups > vb.net controls > june 2005 >
You're in the

vb.net controls

group:

ComboBox Control


ComboBox Control Raju Joseph
6/17/2005 12:00:00 AM
vb.net controls:
Hi All,

Is there any way I can disable certain items in my ComboBox control?

Thanks,

Raju...

Re: ComboBox Control Cor Ligthert
6/17/2005 8:13:56 AM
Raju,

What you mean with "certain" items,

If you mean to set them in a kind of shadowed state or whatever to show that
they are disabled than the answer is no.

It will probably be possible to ignore the use of items in the combobox with
a seperated collection, however than they are visible as normal item.

Cor


Re: ComboBox Control Tom John
7/13/2005 2:01:55 PM
On Fri, 17 Jun 2005 08:43:43 +0530, "Raju Joseph" <vze24srd@msn.com>
[quoted text, click to view]

To display the items in the ComboBox differently, set the DrawMode to
OwnerDrawFixed and implement the OnDrawItem event of the ComboBox,
there you can change how the item is drawn in the control.

Hope this helps

AddThis Social Bookmark Button