Hi all!
I have a textbox which has a read-only proprety. which it's text can be
selected and copied but not edited.
but i didn't find readonly property for a combobox. setting enabled property
to false will make it disabled. the text can't be selected or copied.
What's the best way to hanle with this about combobox?
I'm using VB .Net 2003
Best wishes...
AdrianJMartin - 24 Nov 2005 11:06 GMT
in the KeyPress event handler, set e.Handled = true You probably should
allow some key presses ( CTRL-C , Arrows etc) check the e.KeyChar property
and don't set handled.
> Hi all!
>
[quoted text clipped - 8 lines]
> I'm using VB .Net 2003
> Best wishes...
Sericinus hunter - 27 Nov 2005 15:56 GMT
> Hi all!
>
[quoted text clipped - 4 lines]
>
> What's the best way to hanle with this about combobox?
Just out of curiosity. Why would you need read-only combobox?
I don't really see any sensible behavior of such a control from
the user experience point of view.