ComboBox Control

  • Thread starter Thread starter Raju Joseph
  • Start date Start date
R

Raju Joseph

Hi All,

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

Thanks,

Raju...
 
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
 
Is there any way I can disable certain items in my ComboBox control?

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

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top