Hi,
First, this is not VB6 code. It is VB.Net.
To load an image, you must code:
Dim coinImage As Image
Dim imagePath As String = ""
If choice = 0 Then
headCount = headCount + 1
imagePath = "Heads.gif"
Else
tailCount = tailCount + 1
imagePath = "Tails.gif"
End If
' Here you have your image loaded in coinImage
coinImage = New Bitmap(imagePath)
Then, if you want to put the image in a PictureBox, you must write:
PictureBox1.Image = coinImage
Hope it helps
dmf1978
Junior Poster in Training
51 posts since Aug 2006
Reputation Points: 18
Solved Threads: 7
Hi,
Is your problem solved?
dmf1978
Junior Poster in Training
51 posts since Aug 2006
Reputation Points: 18
Solved Threads: 7