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


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

solved C# copy function richtextbox with formatting [closed]