Combo box readonly

  • Thread starter Thread starter moi_bobbo
  • Start date Start date
M

moi_bobbo

I want to override the existing Combobox class and give it a
readonly property so that the backcolor of the combobox will be grey with
the forecolor being black as is the case for a textbox set to readonly?
I don't want it disabled beacuse i must be able to copy the text inside the combobox. Anyone can help me?

Thanks

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Suggest that you hold the value for the currently selected index and value
in private variables in the subclass and then add event handlers to capture
index changed and value changed etc,.

If the readonly property you create is true then you reset the index and
value to the last value otherwise update the last index and value to the
newly selected ones.


Cheers - OHM
 
Hi OHM

Where did you been,

The newsgroup is full of datagrid problems, now everybody did hear you are
back.

Cor
 
But if I don't want the user to be able to select an option..
Like the readonly property for the textbox.
Or like the disabled property on the combo box, but where I can change the forecolor to black and select the text to copy. The first thing I want is to be able to select the text of a disabled combo, like the readonly property!

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
LOL,

Ive been starting up my own business.

As Arne would say,


I'll be back - Just give me a little time to get sorted.


Cheers Cor - OHM
 
OK, here is another possibility. How about adding a textbox controls to the
controls collection of the combobox. This can be positioned over the
original, and you can use the change events of the combo box to update and
refresh the textbox,

There probably is another method which is easier, I'll look for you

OHM
 
ok, thanks, I'll check around this possibility.
I'll wait further informations...

Pete

**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Back
Top