Hey,just have a problem with some code,just starting out
Its basically a guessing game in vb
Public Class frmMain
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGuess.Click
Dim randNum As Integer
Dim guess As Integer = Convert.ToInt32(txtGuess.Text)
Randomize()
randNum = Int(20 * Rnd()) + 1
Do Until randNum = guess
If guess > randNum Then
txtHint.Text = "Too High"
ElseIf guess < randNum Then
txtHint.Text = "Too Low"
End If
Loop
txtHint.Text = "Correct guess"