Hello there everyone. I am working on an program for tracking student picks when they do literacy stations, and I was working on changing a few things for future versions. See when the prog loads, it will load a textfile to a listbox, but for this new version, I thought it might be a good idea to make a listview so teachers can see the student picks for a whole week.
So I am starting small, I have this code that loads a textfile to a listbox...
AS you can see. The code will load the file to LiteracyStation.StudentChoices(10).AddItem, but if I had a listview called RESULTSVIEW, is there a way to load to the first column? Is there an equivalent to loading to the first column of the resultview column?
Thank you so much!!! :D
So I am starting small, I have this code that loads a textfile to a listbox...
VB Code:
'THIS CODE WILL LOAD STUDENT CHOICES FROM OTHER TIMES THEY PICKED Dim sFileText As String Dim iFileNo As Integer iFileNo = FreeFile 'open the file for reading Open App.Path & "\TrackerSettings\Roster" & RosChosenNumTXT.Text & "\StudentLiteracyStationPicks\Student11\StudentPICK" & WeekDay.Caption & ".txt" For Input As #iFileNo 'change this filename to an existing file! (or run the example below first) 'read the file until we reach the end Do While Not EOF(iFileNo) Input #iFileNo, sFileText 'show the text (you will probably want to replace this line as appropriate to your program!) LiteracyStation.StudentChoices(10).AddItem sFileText Loop 'close the file (if you dont do this, you wont be able to open it again!) Close #iFileNo 'NOW CHECK TO SEE WHAT PICKS THEY HAVE ALREADY DONE
AS you can see. The code will load the file to LiteracyStation.StudentChoices(10).AddItem, but if I had a listview called RESULTSVIEW, is there a way to load to the first column? Is there an equivalent to loading to the first column of the resultview column?
Thank you so much!!! :D