why does this give an error?
It says: 'Operator '=' is not defined for types 'system.drawing.image' and 'system.drawing.bitmap'.Code:If Inventory.PictureBox5.Image = My.Resources.swrdoutline Then MsgBox("Please equip a sword", vbExclamation, "Error") Else PictureBox1.Image = Inventory.PictureBox5.Image End If
By the way, 'Inventory is' a Form.




Reply With Quote