Ok i have this randomisation code for a mastermind game, which creates the random code:
Code:
Dim Pick As Integer
        Randomize()
        Pick = CInt(Int((4 * Rnd()) + 0))
        Hiddn1.Image = imlCode1.Images(Pick)
What I want to know is how to correspond the pictureboxes that you choose the code with. Such as if you enter a correct colour, black pegs show next to the picture boxes, displaying as such etc.

It may sound confusing, but urgent help needed