select - C# copy function richtextbox with formatting -
how make button allows me copy ctrl+c function. want select part of rich text box , when button clicked copies selected part. formatting!
on button click event should like:
if (richtextbox1.selectionlength > 0) // copy selected text clipboard clipboard.settext(richtextbox1.selectedtext, textdataformat.text);
Comments
Post a Comment