Public Class Form1
Dim coin As New Random
Dim heads, tails, outcome As Integer
Dim totals As Double
Dim frequency As Decimal
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
heads = 0
tails = 0
totals = 0
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Flip() Then
heads = heads + 1
THeads.Text = heads
Else
tails = tails + 1
Ttails.Text = tails
End If
totals = totals + 1
Ttotal.Text = totals
End Sub
Function Flip() As Boolean
Return CBool(coin.Next(0, 2))
End Function
End Class
I have two images in my Resource file - coin1.jpg and coin2.jpg
one for heads and one for tails.
How do make them display along with the results of the toss
when heads comes up a head appears
when tails comes up a tail appears.
HELP!!!