cut , copy , paste in richtext box

Hi can anybody know how to get functionalities like cut , copy and paste by programatically in richtext box

thanx



Answer this question

cut , copy , paste in richtext box

  • csmith54

    I'm not sure I understand your question... But here is an answer:

    To programatically trigger commands like Cut, Copy and Paste... you simply need to invoke the appropriate command on your richtext control...

    ApplicationCommands.Cut.Execute( param, myRichTextBox);

    param depends from command to command, I don`t know the particular format for the Cut, Copy and Paste commands, but I bet that those commands mostly depends on the selection and cursor position for the RichTextBox control...

    Hope this helped...

    Marcus


  • Steve Ward

    RichTextBox rtb;

    rtb.Copy();

    rtb.Cut();

    rtb.Paste();


  • cut , copy , paste in richtext box