VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Displaying the text file in Text box(simple code)

by Karthick @ The Hindu (2 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Wed 5th July 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Displaying the text file in Text box(simple code)

API Declarations


Paste one text box with multiline property and expand its size.

Rate Displaying the text file in Text box(simple code)



Dim FileLength
Open "D:\karthik\testfiles\bctest1.txt" For Input As #1
FileLength = LOF(1)
var1 = Input(FileLength, #1)
Text1.Text = var1
Close #1
End Sub


Download this snippet    Add to My Saved Code

Displaying the text file in Text box(simple code) Comments

No comments have been posted about Displaying the text file in Text box(simple code). Why not be the first to post a comment about Displaying the text file in Text box(simple code).

Post your comment

Subject:
Message:
0/1000 characters