943,752 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Marked Solved
  • Views: 459
  • VB.NET RSS
Nov 25th, 2008
0

contents of a file to a list box

Expand Post »
What is the syntax to display the contents of a simple text file to a listbox?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
bpacheco1227 is offline Offline
58 posts
since Jul 2007
Nov 25th, 2008
0

Re: contents of a file to a list box

I figured it out.
VB Syntax (Toggle Plain Text)
  1. lstdisplay.DataSource = IO.File.ReadAllLines(path & "stocks.txt")
Last edited by bpacheco1227; Nov 25th, 2008 at 4:02 pm.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
bpacheco1227 is offline Offline
58 posts
since Jul 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Extracting/filtering data from a text file
Next Thread in VB.NET Forum Timeline: HowTo print Pascal Triangle using loops,spaces and stars





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC