Computer Learning Zone CLZ Access Excel Word Windows

Education is learning what you didn't know you didn't know.

-George Boas
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Home > Forums > Visual Basic Forum > TXT to ListView by Kevin Robertson
Back to Visual Basic Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
TXT to ListView
Kevin Robertson 
           
6 years ago
Hi,

I am building a small program to store my study schedule. I have successfully added the item to the List View and appended to a text file. How do I read all the data from the text file back into the List View?

The data for each entry is stored in the text file as a comma delimited list and I am using VB 2019.

Thanks!
Alex Hedley  @Reply  
           
6 years ago
Hi Kevin

You can use System.IO to read in the text file.
Then use Split function by comma to convert to an array.

Then you could loop the array and run
ListView.Items.Add

Or there might be an AddRange
Kevin Robertson OP  @Reply  
           
6 years ago
Cheers Alex. Got it working perfectly.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visual Basic Forum.
 

Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 11/15/2026 12:38:54 AM. PLT: 1s