FileToTextBox




Dim FileName As String
Dim f As Integer
FileName = "C:\VB\README.TXT"
F = FreeFile 'Get a file handle
Open FileName For Input As F 'Open the file
Text1.Text = Input$(LOF(F), F) 'Read entire file into text box
Close F 'Close the file.










( filetotextbox.html )- by Paolo Puglisi - Modifica del 17/12/2023