im abit stuck on my visual basic coding when doing a messagebox popup?
for when someone get like 1 out of 5 it will show that including a message, if you get 2 out of 10 it shows another one and so on, now i can get the messagebox to come up do see what score comes up but the problem is it shows all the messageboxes on after the other.
here shows my coding. can you tell me where ive gone wrong please
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim Score As Integer
If Score < 2 Then
MsgBox("1 out of 5, not bad, need more practise")
End If
If Score < 3 Then
MsgBox("2 out of 5, not bad")
End If
If Score < 4 Then
MsgBox("3 out of 5, try again, spelling all 5 pictures right will get you to level 2")
End If
If Score = 5 Then
MsgBox("5 out of 5, next level granted")
End If
End Sub
|