Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Readonly Combobox

$
0
0

I have seen many posts on workarounds for a read only combobox.  Everything I have seen so far has been at least 5 years old.

I need a readonly combobox.  It is a dropdownlist.  I want them to be able to choose options from the list, which is saved in a database.  When they want to review that information I load it back into the form from the database.  At this point I make every control on the form read only.  Disable makes it unreadable.  I want to be able to do this to the combobox as well.  I want the selection to be the saved selection and not allow the user to change it but it needs to be readable.

At the moment I have used the create a textbox on top and show one or the other depending on which action is being used.  I would love to find something more efficient and easier.  I would prefer not to have to use third party code, overloading functions or creating a whole new class.  Simple and fast is what I am looking for.

Any thoughts?


JR


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>