VB imagebox Check background image?

Allan

New member
I need some help. I'm trying to make a tic tac toe game with imageboxes in visual basic. I have everything working except the part which checks to see if you have won. I need to know how to make the program check to see what the background image is. This is what I have so far:

If Box1.BackgroundImage Is My.Resources.x And Box2.BackgroundImage Is My.Resources.x And Box3.BackgroundImage Is My.Resources.x Then
MsgBox("Player x Wins!")
End If

'This code doesn't seem to work when I call it. Can someone please help me.

Thank's in advance :)
 
Back
Top