To import an rtf into RTB try this
vb Code:
Dim strfilename As String With OpenFileDialog1 .Filter = "RICHTEXT FILES (*.rtf) |*.rtf" .FilterIndex = 1 .InitialDirectory = "c:\" .Title = "OPEN FILE" .FileName = "" End With If OpenFileDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then strfilename = OpenFileDialog1.FileName Dim OBJREADER As StreamReader = New StreamReader(STRFILENAME) richTextBox1.Text = OBJREADER.ReadLine End If




Reply With Quote