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 MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW TO PRINT A NOTEPAD FILE INTO A PICTURE BOX

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hi

could anyone tell me how to print a note pad file into a picture box. the note pad file looks like the following;

Brooklyn Beckam,5.70,50
Cameron Diaz,7.00,40
Anthony Blair,4.90,48

help would be greatly appreciated

cheers mat
 
Hi Matt,

Try this

Dim strString as String
Dim intY as Integer
intY = 10
Me.picBox.CurrentX = 0
Me.picBox.CurrentY = intY
Open "C:\...FilePath.." For Input As #1
While (Not EOF(1))
Line Input #1, strString
Me.picGraph.Print strString
intY = intY + 10
Wend
Close #3

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top