Computing.Net > Forums > Programming > How to Populate a Listbox from text file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How to Populate a Listbox from text file

Reply to Message Icon

Name: dmoney1010
Date: September 25, 2009 at 23:16:30 Pacific
OS: Windows 7
Subcategory: C/C++
Tags: Listbox, VBNET, TextFile, Edit, load
Comment:

I need to know how to populate a Listbox with a
TextFile. I have tried ReadLine but it only adds
the first line to the Listbox.
After adding the TextFile to the Listbox, i need to
know how to Edit the contents of the listbox.



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: September 26, 2009 at 05:53:45 Pacific
Reply:

I have tried ReadLine but it only adds the first line to the Listbox.
Then use a loop.

i need to know how to Edit the contents of the listbox.
Though the ListBox.Items property, I assume.


0

Response Number 2
Name: dmoney1010
Date: September 27, 2009 at 18:50:34 Pacific
Reply:

yes, i used listbox->items->Add but it only adds the 1st line


0

Response Number 3
Name: Razor2.3
Date: September 27, 2009 at 19:30:06 Pacific
Reply:

Razor2.3: Then use a loop.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: How to Populate a Listbox from text file

How to make a dvd from avi file www.computing.net/answers/programming/how-to-make-a-dvd-from-avi-file/9589.html

Set String from text file www.computing.net/answers/programming/set-string-from-text-file/17629.html

How to generate a post beep www.computing.net/answers/programming/how-to-generate-a-post-beep/13857.html