Sometimes, it is necessary to copy the complete content of TX Text Control .NET for Windows Forms into the clipboard. If you do this by selecting everything and using the Copy() method, not every element will be copied into the clipboard. In this case, the Save() method can be used to save the content into a variable. Using this variable, a DataObject can be filled and passed to the Clipboard itself.

Dim data As New DataObject
Dim RTF As String

TextControl1.Save(RTF, TXTextControl.StringStreamType.RichTextFormat)
data.SetData(DataFormats.Rtf, RTF)
Clipboard.SetDataObject(data)