A question about Label object.

  • Thread starter Thread starter Kfir Marouani
  • Start date Start date
K

Kfir Marouani

Hi,
I'm trying use copy&paste on a text in a lable (simply copy&paste like any
other text) but It doesn't allow me to mark and copy the text.
How can I enable this option?
Thanks in advance.
-Kfir
 
I'm trying use copy&paste on a text in a lable (simply copy&paste like any
other text) but It doesn't allow me to mark and copy the text.
How can I enable this option?

Do you mean in the designer, or at runtime? Labels are for read-only
text - they're not designed to be modifiable by the user. (You can
programmatically modify them, of course - that's a different matter.)

Jon
 
In the designed.
Meaning, I run the windows application and within the form you see a label
with a text. Like "File:". Now I'm trying to mark the text with the mouse
and copy it to the clipboard.
 
In the designed.
Meaning, I run the windows application and within the form you see a label
with a text. Like "File:". Now I'm trying to mark the text with the mouse
and copy it to the clipboard.

If you're running the application, that's *not* in the designer any
more - that's runtime.

I don't believe labels support cut and paste.

Jon
 
Kfir said:
In the designed.
Meaning, I run the windows application and within the form you see a label
with a text. Like "File:". Now I'm trying to mark the text with the mouse
and copy it to the clipboard.

Hi,

As Jon has mentioned, labels at runtime do not support "Cut & Paste".
Replace your label with a TextBox, and set it's ReadOnly property to true,
to achieve the desired functionality. You can mess around with the border
property to get the effect of a label.
 
Sorry about the mistake. (Run time)
Anyhow I want to copy and paste it somewhere else. Not cut it.
I guess i'll have to use a TextBox object :(
Thanks for the help!
 

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

Back
Top