English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am programming a game for my computer programming class and i need to find out how to make an if statement work for picture boxes if at all possible. if it is not possible can some one help me
I tried to use:
If picturebox1.pic(x) = picturebox2.pic(x) Then
picturebox2.pic(x+1)
End if
pic(x) is a random which equals the pics, and that stuff works
and it says:
Operator '=' is not defined for types System.Drawing.Image' and 'System.Drawing.Image
could someone tell me what type of code i can use

2007-06-03 14:44:09 · 1 answers · asked by pilot_boy747 2 in Computers & Internet Programming & Design

1 answers

Try the following (VB2005)

If [Object].Equals(Me.PictureBox1.Image, Me.PictureBox2.Image) Then

2007-06-03 17:32:06 · answer #1 · answered by MarkG 7 · 0 0

fedest.com, questions and answers