Helen1greece
Technical User
How is it possible to take text form text file and put it in a TextBox. Can somebody give me an example code without using a RichTextBox?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Private Sub Command1_Click()
Dim Buffer As String
Dim F As Integer
Dim FilePath As String
FilePath = "C:\Some Folder\Another Folder\YourFile.txt"
F = FreeFile
Buffer = Space(FileLen(FilePath))
Open FilePath For Binary As #F
Get #F, , Buffer
Close #F
Text1.Text = Buffer
End Sub