Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact
A1VBCode Forums
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      

Home » .NET Programming (VB 2010 or earlier) » Visual Basic .NET » Read Txt file line by line to textbox


Read Txt file line by line to textboxExpand / Collapse
Author
Message
Posted 7/20/2010 9:23:11 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/27/2010 6:34:21 PM
Posts: 2, Visits: 7
Hello,

Im making a program that reads a txt file
what im trying to make is a button that displays the next line every time you click it


[code] Dim oRead As System.IO.StreamReader
oRead = IO.File.OpenText("C:\Users\AMILOXI3650\Desktop\Keys.txt")

While oRead.Peek <> -1
linein = oRead.ReadLine()

End While[/code]


for exmp. file contains
11111111111
22222222222
33333333333
44444444444

User clicks first time on button
textbox displays > 1111111111111
second time user clicks it will display
2222222222222

Etc etc.

Sounds really simple
but hard to make for me
any 1 has an idea how to make this?
Post #29452
Posted 7/27/2010 6:34:54 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 7/27/2010 6:34:21 PM
Posts: 2, Visits: 7
Bump, bump
Post #29468
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Admin, Mod, Mark, Keithuk

PermissionsExpand / Collapse

All times are GMT -5:00, Time now is 2:51pm