lundi 19 décembre 2016

Using an IF Statement to check a background image- VB.Net

For w = 1 To 8
        For h = 1 To 14
            If grid(w, h).BackgroundImage = Tetris.My.Resources.Resources.backblock Then
                arrayCurrent(w, h) = True
            End If
        Next
    Next

Flags the error "Operator '=' is not defined for types 'System.Drawing.Image' and 'System.Drawing.Bitmap'."

Any ideas on how to get this working

Aucun commentaire:

Enregistrer un commentaire