Hi there folks. I am working on a program to keep track of student marks for report cards. I am using a listview, and have it set up the way I want it.
The first column will have the student names. I have a behavior tracking program that keeps their names in a textfile, and I would like to use that textfile. I am used to loading a textfile into a listbox, but this time I want to load them as the list items for the first column of the listview.
This is what I have so far.
VB Code:
'Set up the listview lvwbook.View = lvwReport lvwbook.GridLines = True Dim li As ListItem With lvwbook .ColumnHeaders.Add , , "Student Name" Set li = .ListItems.Add(, , "Row1Item1") End With
So in this case of just adding Row1Item1, I would like to load the textfile Roster6.txt
Would anyone know how I can do that?
Thanks!!




Reply With Quote