Make the label's text selectable

  • Thread starter Thread starter Adrian Grigorof
  • Start date Start date
A

Adrian Grigorof

Hi all,

How can I configure a label control so I can select its text with a mouse
(for copy/paste)?

Regards,

Adrian
 
How about using a textbox and setting it to readonly when a border style of
"none"?
 
Yes, I thought about that but unless that's the only way I want to avoid
re-writing/adjusting all the code associated with that label (bad idea to
use one in the first place).

Regards,

Adrian
 
Hi Adrian,

I agree with Peter that we'd better use a readonly non-border TextBox to
simulate what you want. Actually, Label control is not designed for edit
usage, and it does not have the function for selection.

I think you may use the TextBox, and use Find/Replace funtion to replace
any Label reference with your new TextBox reference in the code file.

Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Thank you Peter and Jeffrey, it seems that I have to replace the label with
a TextBox.
 
Ok, if you need further help, please feel free to post. Thanks

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top