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

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -