ResultsForm.vb 916 B

1234567891011121314151617
  1. Public Class ResultsForm
  2. Private Sub cmdOK_Click(sender As System.Object, e As System.EventArgs) Handles cmdOK.Click
  3. Me.Close()
  4. End Sub
  5. Private Sub Results_Shown(sender As Object, e As System.EventArgs) Handles Me.Shown
  6. 'Print all data as text
  7. lblPoäng.Text = "Questions: " & SettingsForm.iArrayLength * SettingsForm.iTestLength & vbCrLf & "Correct answers: " & SettingsForm.iCorrect & vbCrLf & "Incorrect answers: " & SettingsForm.iIncorrect
  8. 'Text to clarify the progressbar
  9. lblAndel.Text = "Percentage correct: " & SettingsForm.iCorrect & " / " & SettingsForm.iArrayLength * SettingsForm.iTestLength
  10. pbAndelrätt.Maximum = SettingsForm.iArrayLength * SettingsForm.iTestLength 'Set the maximum value to the number of questions
  11. pbAndelrätt.Value = SettingsForm.iCorrect 'Set the value to the number of correct answers
  12. End Sub
  13. End Class