Visual Basic Codes
ActiveX
Miscellaneous
Applications
Code Snippets
Common Dialogs
Special Effects
Database Stuff
Date Time
Files Drives
Forms
Graphics Games
Internet Stuff
Multimedia
Other
Strings
Windows
Visual Basic > Code Snippets sample source codes
Display a files contents in a text box
Display a files contents in a text box 'place a text box on a form Private Sub Form_Load() Dim fileLength Open "d:\comboexample.txt" For Input As #1 fileLength = LOF(1) fileRead = Input(fileLength, #1) Text1.Text = fileRead Close #1 End Sub 'comboexample.txt line1 line2 line3 line4
Privacy Policy
|
Link to Us
|
Links