Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
  2.         Dim y As Integer = Integer.Parse(TextBox2.Text) 'get the year from the text box
  3.        Dim ps As playerScore = New playerScore(TextBox1.Text, y, score) 'create a new playerscore
  4.        scores(index) = ps 'add this too the array
  5.        RichTextBox1.ResetText()
  6.         For x = 0 To index
  7.             RichTextBox1.AppendText(scores(x).getStats()) 'put the text in the textbox
  8.        Next
  9.         index += 1
  10.  
  11.         FormMain.setScores(scores, index) 'save the scores to the main form so there still there if this window is shut
  12.  
  13.     End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement