Software Development Network>> Visual Studio>> 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
RichTextBox rtb;
rtb.Copy();
rtb.Cut();
rtb.Paste();
cut , copy , paste in richtext box
csmith54
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();