[RESOLVED] Simple picturebox question
why does this give an error?
Code:
If Inventory.PictureBox5.Image = My.Resources.swrdoutline Then
MsgBox("Please equip a sword", vbExclamation, "Error")
Else
PictureBox1.Image = Inventory.PictureBox5.Image
End If
It says: 'Operator '=' is not defined for types 'system.drawing.image' and 'system.drawing.bitmap'.
By the way, 'Inventory is' a Form.
Re: Simple picturebox question
What abou if you use Is instead of = ?
Re: Simple picturebox question
tried that but it just shows the swrdoutline image instead of giving error.
Re: Simple picturebox question
I got it now, thanks for the help