R
Rlrcstr
I'm looking for a more elegant solution to this problem:
I have a usercontrol that is dynamically created at runtime. It gets
populated with some collection of controls based on peripjeral data - maybe
a couple of labels and a check box. I want the labels to be able to catch
focus. I want a user to be able to select the text so that the control can
be indicated as the target for some operation. But a label can't hold
focus.
I tried using a textbox and setting it to read only. Works, mostly, but
when the user selects it, they see a text input caret happily blinking, even
though they can't enter anything.
What's the best way to accomplish this?
Thanks.
Jerry
I have a usercontrol that is dynamically created at runtime. It gets
populated with some collection of controls based on peripjeral data - maybe
a couple of labels and a check box. I want the labels to be able to catch
focus. I want a user to be able to select the text so that the control can
be indicated as the target for some operation. But a label can't hold
focus.
I tried using a textbox and setting it to read only. Works, mostly, but
when the user selects it, they see a text input caret happily blinking, even
though they can't enter anything.
What's the best way to accomplish this?
Thanks.
Jerry