Static Text with Focus

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
 
C

Cor Ligthert

Rlrcstr,

This has in my opinion a simple answer, just a flat style button (the look
from a label).

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top