Claudio
Wed Apr 06 01:29:03 CDT 2005
On Tue, 5 Apr 2005 11:03:02 -0700, Dick wrote:
> Is there an easy (i.e. without creating a new control) way to make a ComboBox
> ReadOnly such that the user can't change its value but doesn't have to strain
> their eyes to read its greyed out text?
Dick,
As Jeffrey suggests, you may use a ReadOnly textbox control, while
ReadOnly. If you want to go this way, you can use my own ReadOnlyComboBox
which encapsulates that behavior. It has a ReadOnly property and as soon as
you set it to true, it displays a ReadOnly texbox instead of the combobox.
When you set it back to false, it displays again the ComboBox.
You can download it from my blog:
http://www.grazioli.ch/Blog/PermaLink.aspx?guid=696e467f-5f8c-40f2-8270-62e4cd3b7281
hth
--
Claudio Grazioli
http://www.grazioli.ch