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.