Making a 'read-only' dropdown listbox

  • Thread starter Thread starter Jason Sobell
  • Start date Start date
J

Jason Sobell

Hi,
I'm trying to figure out a sensible way of making a combobox (configured as
a dropdown list) behave in a read-only fashion.
Setting Enabled=False will grey the text and the background, but I want to
leave the component looking normal but not allow the user to change the
contents.
I've tried subclassing a combobox but can't see any overrides I can use to
produce this behavior.
A very last alternative will be to create a usercontrol with a label that
visually replaced the dropdown when the component is locked, but I would
much prefer to find a way of using the single native component.
Any ideas?

Cheers,
Jason
 
Do you mean stopping the user from making another selection? As far as I
know, disabling it is about the only thing you can do.
 
Back
Top