none
How to copy the data without using ctrl+C through code RRS feed

  • Question

  • Hi ,

    Can anyone suggest me to how to copy the text inside any control on click of button  (We should not use ctrl+C and ctrl+v) in vb.net or C#


    Moore Rajesh Kumar Reddy
    Monday, August 9, 2010 11:07 AM

Answers

  •  

    Clipboard.SetDataObject(textBox1.SelectedText);

     

    More info: http://msdn.microsoft.com/en-us/library/system.windows.forms.clipboard.aspx


    Zaiden http://zPod.com.ar
    • Proposed as answer by Frank Xu Lei Tuesday, August 10, 2010 9:35 AM
    • Marked as answer by SamAgain Monday, August 16, 2010 9:16 AM
    Monday, August 9, 2010 2:00 PM