contents of a file to a list box

Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Jul 2007
Posts: 58
Reputation: bpacheco1227 is an unknown quantity at this point 
Solved Threads: 0
bpacheco1227 bpacheco1227 is offline Offline
Junior Poster in Training

contents of a file to a list box

 
0
  #1
Nov 25th, 2008
What is the syntax to display the contents of a simple text file to a listbox?
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 58
Reputation: bpacheco1227 is an unknown quantity at this point 
Solved Threads: 0
bpacheco1227 bpacheco1227 is offline Offline
Junior Poster in Training

Re: contents of a file to a list box

 
0
  #2
Nov 25th, 2008
I figured it out.
  1. lstdisplay.DataSource = IO.File.ReadAllLines(path & "stocks.txt")
Last edited by bpacheco1227; Nov 25th, 2008 at 4:02 pm.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC