I have two RichTextBoxes in my vb.net application (rtf1 & rtf2). rtf1 is loaded with the external data. Mostly It contains para split into different sections. The paragraph is a dynamic data, hence the no. of words keep on changing. Now my question is that, I want to select a para from the cluster, copy it and paste it into rtf2.
Manually I did as,
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Rtf1.Copy() Rtf2.Paste() Clipboard.Clear() End Sub
Then I added brackets to the para contents as:
[para content goes here is a multiline]
Here only i could find the starting position and length. without knowing the ending postion, i couldnot specify the number of characters. So I would be ok if anyone suggest me how to select "para content goes here is a multiline" only from the [para content goes here is a multiline]?
Actually the contents of Rtf1 is in the .txt format. But I knew only
so, if i can select the para in the .txt file before reading it into rtf1, it will be more useful. Thanks for your solution in advance