Valhalla Legends Archive

Programming => General Programming => Visual Basic Programming => Topic started by: Reaper~ on December 21, 2004, 10:32 PM

Title: Help!
Post by: Reaper~ on December 21, 2004, 10:32 PM
I need to know how to make an event where if the user inputs the right number that shows up randomly something will happen.
Ex.

Private Sub cmdGo_Click()
lblAnswer.Caption = "And the number is..."
lblNumber.Caption = Rand(1, 25)
If txtNumber.Text =                  Then
MsgBox ("Mega-Winner!! $500 has been sent to your account!")
frmAccount.lblWinning1.Caption = "$500"
End If


What do I put after the = in If txtNumber.Text = ?
Title: Re: Help!
Post by: Warrior on December 21, 2004, 10:39 PM
Wildguess:

If txtNumber.Text = lblNumber.Caption Then
Title: Re: Help!
Post by: Reaper~ on December 21, 2004, 11:03 PM
Lol wow I must be tired or thinking to hard I was trying all kinds of things. Thanks!