Reputation:
I need to have label like controls which display certain information which can be selected. Which control to use?
I need the label (ie control) to be selectable.
The form may have several such controls and the information displayed in each is determined by a single drop down selection in the form.
Upvotes: 4
Views: 5530
Reputation: 57202
What about a TextBox with ReadOnly = true
?
That way the text is selectable and copiable, but the control cannot be edited.
By changing the BorderStyle
to None
you get the same visual appearance as a label.
Upvotes: 11