Selected Text from Property Grid RRS feed

  • Question

  • I am using a property grid in my application. At any time user may select some value of a property from the grid. Lets say, there is a property called caption. The value of this property is "Hello". Using the mouse, user may select only "He" of this value. then user presses Ctrl+C, I will fire an event when this happens. How can I get the text "He" into the clipboard.

    It would be something like: Clipboard.SetText(PropertyGrid. ????)

    Please help.

    Himanshu Saxena
    • Moved by CoolDadTx Wednesday, February 2, 2011 3:06 PM Winforms related (From:Visual C# General)
    Wednesday, February 2, 2011 9:35 AM


  • Copy works in the property grid, there is nothing extra you need to do. Just hit ctrl+c, switch to notepad and hit ctrl+v ... selected text from the property grid will be pasted.

    If you have a problem please describe how to reproduce it.

    Best regards,

    • Proposed as answer by Jie Bao Tuesday, February 8, 2011 5:51 AM
    • Marked as answer by Jie Bao Monday, February 14, 2011 10:10 AM
    Wednesday, February 2, 2011 7:18 PM