I am trying to find a way to basically check that if all picture boxs are black then you have completed the game

i am looking for somthing along the lines of

VB Code:
  1. If PIC_ALLSET = 33554431 Then
  2. MsgBox ("congratulations you took : " & sec & " seconds")
  3. Else
  4. End If

but this does not work for some reason

Thank for help in advance

Daniel o/