[Solved] C# copy function richtextbox with formatting [closed]

[ad_1]

On button click event you should do something like:

if (richTextBox1.SelectionLength > 0)
// Copy the selected text to the Clipboard
Clipboard.SetText(richTextBox1.SelectedText, TextDataFormat.Text);

2

[ad_2]

solved C# copy function richtextbox with formatting [closed]