Is there any way to disable the "double-click to copy" functionality of a .NET label?

Posted by DavidCarroll on Stack Overflow See other posts from Stack Overflow or by DavidCarroll
Published on 2010-03-25T21:36:05Z Indexed on 2010/03/25 21:53 UTC
Read the original article Hit count: 133

Filed under:
|
|

This is really annoying. I'm using the label as part of a list item user control, where the user can click it to select the list item and double-click it to rename it. However, if you had a name in the clipboard, double-clicking the label will replace it with the text of the label!

I've also check the other labels in the application, and they will also copy to the clipboard on a doubleclick. I have not written any clipboard code in this program, and I am using the standard .NET labels.

Is there any way to disable this functionality?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about winforms