Selectable label

  • Thread starter Thread starter eclipse
  • Start date Start date
E

eclipse

Hi,

I'm sure, that this one will be very easy (I've just started learning C#
and got stuck with this one :) How to make a label, which content can be
selected by user and copied to clipboard from the context menu? Do I have
to create it (the context menu) by myself, or may I use some predefined
property?
 
Hello,

eclipse said:
I'm sure, that this one will be very easy (I've just started
learning C# and got stuck with this one :) How to make
a label, which content can be selected by user and copied
to clipboard from the context menu? Do I have to create it
(the context menu) by myself, or may I use some predefined
property?

You must create the contextmenu yourself. Maybe you should use a textbox
without border and 'ReadOnly = True' instead.
 
Tako rzecze Herfried K. Wagner [MVP] ([email protected]):
You must create the contextmenu yourself. Maybe you should use a
textbox without border and 'ReadOnly = True' instead.

I've tried it before, but the problem was, that the content of the TextBox
was initialy selected. I've set the "TabStop" propert to false and it
works fine.

Thank you.
 

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