VB.NET - How To Read Text From Txt File And Display It Into RichTextBox Using Visual Basic.NET
In This VB.NET Tutorial We Will See How To Read Text From Text File And Show It In RichTextBox Visual Basic .NET Programming Language .
Project Source Code:
Imports System.IO
Public Class Read_Text_From_Text_File_InTo_RichTextBox
Private Sub BTN_READ_Click(sender As Object, e As EventArgs) Handles BTN_READ.Click
Dim reader As TextReader = New StreamReader("C:\folder\Text.txt")
RichTextBox1.Text = reader.ReadToEnd()
reader.Close()
End Sub
End Class