Read Only Combobox

  • Thread starter Thread starter Chris Kerrison
  • Start date Start date
C

Chris Kerrison

I've got my own Inheritted Version of the standard Winforms Combo
control and I want to add the ability to make this Read Only.

I've added a ReadOnly Property, set the backcolor to my Appropriate
Read-only color and prevented the User typing anything into the box.
Now I want to prevent the user from Selecting anything in the dropdown
list. Any ideas how to do this.


thanks
 
Hi Chris,

I don't fully understand what you are trying to do, have you tried the
Enabled property? it allows you to change the selectedIndex/Item using code
but the user gets a readonly combobox.

Cheers,
 

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