Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW DO I PRINT A NOTEPAD FILE INTO A PIC BOX????? HELP PLEASE

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
SEE PREVIOUS, I NEED MEGA HELP PLEASE>>>>>>>
 
I can't find your previous post (haven't looked very hard), but I presume this is what you wanted :

Dim intHandle As Long
Dim strLine As String

intHandle = FreeFile
Open "textfilename and path" For Input As intHandle
Do
Line Input #intHandle, strLine
Picture1.Print strLine
Loop Until EOF(intHandle)
Close intHandle

This will open a text file (Notepad file if you will) and add it's contents to a picture box.

Good luck with it,
Heico
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top