Windows Develop Bookmark and Share   
 index > Windows Forms Designer > label with select text and copy functionality similar like textbox
 

label with select text and copy functionality similar like textbox

Hi all,

I wanted to select the label display text and copy it with ctl-C option or similar to text box properties. Can we achieve this. if so pls help. Note: since the label text will be dynamic and length can go 100 char, i cant use text box and do some some back color change.
premanand d  Saturday, May 16, 2009 5:30 PM
solution is locked in the link which u gave............
http://72.14.235.132/search?q=cache:tPbzYYgdvLMJ:www.experts-exchange.com/Programming/Languages/C_Sharp/Q_21693232.html+c%23+%2B+copying+label+text&cd=1&hl=en&ct=clnk&gl=in&client=firefox-a



Thanks,
A.m.a.L
.Net Goodies
Remember to click "mark as answered" when you get a correct reply to your question
A.m.a.L - aditi.com - Think Product  Saturday, May 16, 2009 6:40 PM
Label control is designed not to be selectable. You can use TextBox instead. To make it looks like a label control, you can take a look at this solved thread .

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Friday, May 22, 2009 3:03 AM
Already answered thread

http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_21693232.html


Thanks,
A.m.a.L
.Net Goodies
Remember to click "mark as answered" when you get a correct reply to your question
A.m.a.L - aditi.com - Think Product  Saturday, May 16, 2009 5:47 PM
solution is locked in the link which u gave............
premanand d  Saturday, May 16, 2009 6:09 PM
solution is locked in the link which u gave............
http://72.14.235.132/search?q=cache:tPbzYYgdvLMJ:www.experts-exchange.com/Programming/Languages/C_Sharp/Q_21693232.html+c%23+%2B+copying+label+text&cd=1&hl=en&ct=clnk&gl=in&client=firefox-a



Thanks,
A.m.a.L
.Net Goodies
Remember to click "mark as answered" when you get a correct reply to your question
A.m.a.L - aditi.com - Think Product  Saturday, May 16, 2009 6:40 PM
Label control is designed not to be selectable. You can use TextBox instead. To make it looks like a label control, you can take a look at this solved thread .

Best regards,
Bruce Zhou
Please mark the replies as answers if they help and unmark if they don't.
Bruce.Zhou  Friday, May 22, 2009 3:03 AM

You can use google to search for other answers

Custom Search

More Threads

• How to write codes to changes the sound volume
• Strange Errors in VS.NET
• I need the CheckBox portion of the CheckBox control to be smaller, say 2/3 the size - How can I do that
• How to capture an event of a control y ParentForm
• problem with ListView's SelectedIndexChanged
• Problems with a custom user control with some buttons in the designer
• Implement the calculator logic
• Change TextBox drawing rectangle
• Draw a line in datagridview column
• Select a custom component in custom controls like DataSet/Datagrid