Hi guys,

So I have found a way to getting text out of an RTB like so:

VB Code:
  1. Imports System.IO
  2. Imports System.Text
  3.  
  4. Class Window1
  5.  
  6.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.Windows.RoutedEventArgs) Handles Button1.Click
  7.  
  8.         Dim tr As New TextRange(RichTextBox1.Document.ContentStart, RichTextBox1.Document.ContentEnd)
  9.         Dim ms As New MemoryStream
  10.         tr.Save(ms, DataFormats.Text)
  11.         Dim MyArray As String = ASCIIEncoding.Default.GetString(ms.ToArray())
  12.  
  13.  
  14.  
  15.  
  16.     End Sub
  17. End Class

The issue im having is that the string from the last line only seems to be 1 string I thought it would be an array of strings? It could be my rusty array logic? any idea's?