Hello VBForums.
I want this code to make MsgBox's that appear every time the scores in the MsgBox's apply to these rules. So when the TextBox2 (Team 2)'s score overtakes Team one it will display the Message.Code:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load If TextBox1.Text = TextBox2.Text Then MsgBox("The scores have Evened!") End If If TextBox1.Text > TextBox2.Text Then MsgBox("Orange team in the lead!") End If If TextBox1.Text < TextBox2.Text Then MsgBox("Blue Team in the lead!") End If End Sub
The Code I have in there currently just makes the first MsgBox "The scores have Evened!" it does it once when I start the program then doesn't do it again.
I don't want it to repeat the code every time to score is updated such as score 10-15 then 10-17 "Blue Team in the lead!"
So it only displays the MsgBox's when the score evens or when one team overtakes.
Thanks.




Reply With Quote
