In a project using a RichTextBox, when I copy text and paste it into some other applications, the line breaks are missing. This happens in MS NotePad and the sample text area in Expresso. The text pastes correctly (line breaks are present) with WordPad, NoteTab Lite and NotePad++.
Here's the code used to copy text (RichTextBox is named "rtf"):
Private Sub menuEdit_Copy_Click(ByVal sender As Object, ByVal e As EventArgs) Handles menuEdit_Copy.Click, tb_Copy.Click, popup_Copy.Click
Try
If rtf.SelectedText.Length > 0 Then
Clipboard.SetText(rtf.SelectedText, TextDataFormat.Text)
End If
Catch ex As Exception
MsgBox(ex.ToString, MsgBoxStyle.Exclamation, title)
End Try
End Sub
Any ideas why this happens?
Thanks
AB