C# comparing 2 picturebox tags (strings)

Jul 11 2014 3:30 AM
I want to have 8 picture boxes (4 on the left and 4 on the right). The user will drag pictures contained in 4 left hand side picture boxes to the correct corresponding empty picturebox on the right hand side.

After all pictures have been dragged across I want to use a submit button to calculate a score for the number of correct selections.

Can I use picturebox tags to compare to do this?

e.g
picturebox1.tag = "march"
picturebox2.tag = "april"
picturebox3.tag = "may"


if picturebox1.tag == picturebox3.tag {score += 1}

Hope someone can help,

Gerard

Answers (1)