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
Loading
Maren CrossPosted Jul 27, 2014, 8:30 AM
You can find more information here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.picturebox%28v=vs.110%29.aspx
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.tag%28v=vs.110%29.aspx
You should be able to compare tags values, so what you are trying to do is applicable. You can find more information about Drag and Drop features here:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.dodragdrop%28v=vs.110%29.aspx
Note that if your main purpose is to compare images-with-images (pixel data with pixel data), there are more advanced features (such as correlation function from leadtools. You can find more information here:
http://support.leadtools.com/CS/forums/38163/ShowPost.aspx