well, i had loaded array of images during run-time and when the user clicks on the imagebox then the image is shown and when the user clicks on the other imagebox then the other image also shown.

well my problem is that, how can i compare the image which is first clicked with the image which is second clicked?

if both pics are of the same then both pics will remain in the imagebox (means shown), else both pics is closed (means unload picture).

private Sub imagebox_Click(Index as Integer)
:
:
: