I'm working on a card game with cards displayed in 13 ImageViews. I set up an array for them like this:
CardViews = Array As ImageView(C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13)
When any of the cards is selected, I want to raise it up above the row to make it stand out, as well as doing some other processing.
Do I have to have a Click event with basically the same code for each ImageView, or is there some way to get the array to capture the Click event for all of them? (In VB6, it would look like: Sub CardViews_Click(Index) where Index is the image selected.)
CardViews = Array As ImageView(C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13)
When any of the cards is selected, I want to raise it up above the row to make it stand out, as well as doing some other processing.
Do I have to have a Click event with basically the same code for each ImageView, or is there some way to get the array to capture the Click event for all of them? (In VB6, it would look like: Sub CardViews_Click(Index) where Index is the image selected.)