Click here to Skip to main content
15,888,984 members
Home / Discussions / Visual Basic
   

Visual Basic

 
JokeRe: Advice: stored procedure parameters, lists of sqlparameters or using sqlparametercollections Pin
Luc Pattyn15-Apr-10 6:57
sitebuilderLuc Pattyn15-Apr-10 6:57 
QuestionHow to make text go away after a few seconds? Pin
Adam Wike14-Apr-10 4:05
Adam Wike14-Apr-10 4:05 
AnswerRe: How to make text go away after a few seconds? PinPopular
Steven J Jowett14-Apr-10 4:10
Steven J Jowett14-Apr-10 4:10 
GeneralRe: How to make text go away after a few seconds? Pin
Adam Wike14-Apr-10 4:11
Adam Wike14-Apr-10 4:11 
GeneralRe: How to make text go away after a few seconds? Pin
Dalek Dave14-Apr-10 8:35
professionalDalek Dave14-Apr-10 8:35 
AnswerRe: How to make text go away after a few seconds? Pin
William Winner14-Apr-10 8:28
William Winner14-Apr-10 8:28 
QuestionSplitting a .txt file and sorting it Pin
offroaderdan14-Apr-10 3:11
offroaderdan14-Apr-10 3:11 
AnswerRe: Splitting a .txt file and sorting it Pin
tosch14-Apr-10 3:42
tosch14-Apr-10 3:42 
There are several problems in your program
- you defined names = New System.Collections.Generic.List(Of String) in the declarations section and later on in Form_Load you have scores = New System.Collections.Generic.List(Of Integer). Is the list of type Integer or String?


- you are trying to load the listboxes with names/scores before you read them from the textfile. so move the line Call highscore to the bottom in Form1_Load

- in Sub highscore you are loading the listboxes from the names/scores lists. The entries in the list are indexed from 0 to Count-1. So change the first line to For i = 0 To 9



there are probably several more problems but this should get you started.
Tosch

GeneralRe: Splitting a .txt file and sorting it [modified] Pin
offroaderdan14-Apr-10 3:48
offroaderdan14-Apr-10 3:48 
GeneralRe: Splitting a .txt file and sorting it Pin
tosch14-Apr-10 4:15
tosch14-Apr-10 4:15 
GeneralRe: Splitting a .txt file and sorting it [modified] Pin
offroaderdan14-Apr-10 4:38
offroaderdan14-Apr-10 4:38 
GeneralRe: Splitting a .txt file and sorting it Pin
tosch14-Apr-10 4:48
tosch14-Apr-10 4:48 
AnswerRe: Splitting a .txt file and sorting it [modified] Pin
Ian Shlasko14-Apr-10 5:50
Ian Shlasko14-Apr-10 5:50 
GeneralRe: Splitting a .txt file and sorting it Pin
offroaderdan15-Apr-10 0:12
offroaderdan15-Apr-10 0:12 
GeneralRe: Splitting a .txt file and sorting it Pin
Ian Shlasko15-Apr-10 1:37
Ian Shlasko15-Apr-10 1:37 
GeneralRe: Splitting a .txt file and sorting it Pin
offroaderdan15-Apr-10 1:52
offroaderdan15-Apr-10 1:52 
GeneralRe: Splitting a .txt file and sorting it Pin
Ian Shlasko15-Apr-10 1:58
Ian Shlasko15-Apr-10 1:58 
QuestionErrorprovider within a datatable column Pin
popalzai13-Apr-10 20:49
popalzai13-Apr-10 20:49 
AnswerRe: Errorprovider within a datatable column Pin
Simon_Whale14-Apr-10 3:30
Simon_Whale14-Apr-10 3:30 
GeneralRe: Errorprovider within a datatable column Pin
popalzai14-Apr-10 19:49
popalzai14-Apr-10 19:49 
GeneralRe: Errorprovider within a datatable column Pin
Simon_Whale14-Apr-10 21:55
Simon_Whale14-Apr-10 21:55 
QuestionHow to consume WCF service throgh Visual Basic 6.0 application Pin
amit k mistry13-Apr-10 10:28
amit k mistry13-Apr-10 10:28 
AnswerRe: How to consume WCF service throgh Visual Basic 6.0 application Pin
nlarson1113-Apr-10 11:08
nlarson1113-Apr-10 11:08 
GeneralRe: How to consume WCF service throgh Visual Basic 6.0 application Pin
amit k mistry13-Apr-10 11:21
amit k mistry13-Apr-10 11:21 
GeneralRe: How to consume WCF service throgh Visual Basic 6.0 application Pin
amit k mistry13-Apr-10 11:25
amit k mistry13-Apr-10 11:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.