B bazp Member Licensed User Longtime User Nov 23, 2012 #1 I am creating a puzzle with 12 pieces. I got it to work. I can move individualy each piece but I can't address a single piece. When I try to position the first piece the last piece created is moved. I am not sure if I need a sender or something else. Code: Copy If Tag=0 Then imv.Left=69 '69 imv.top =44 '44 End If
I am creating a puzzle with 12 pieces. I got it to work. I can move individualy each piece but I can't address a single piece. When I try to position the first piece the last piece created is moved. I am not sure if I need a sender or something else. Code: Copy If Tag=0 Then imv.Left=69 '69 imv.top =44 '44 End If
S sorex Expert Licensed User Longtime User Nov 23, 2012 #2 I had simlar issues before and the only solution that seemed to work out it making use of a panel array. (or imageview array if you use that) you can then access it as pieces(0).left=69 pieces(0).top=44 Upvote 0
I had simlar issues before and the only solution that seemed to work out it making use of a panel array. (or imageview array if you use that) you can then access it as pieces(0).left=69 pieces(0).top=44
klaus Expert Licensed User Longtime User Nov 23, 2012 #3 Unfortunately you don't show enough code. What kind of view are your pieces ? How did you Dim and add them ? I suspect that you dimed one view and added the same several times. Couldn't you post your project as a zip file ? (IDE menu Files / Export As Zip) so we could see what you have done and how, test it in the same conditions as you do and give you a concrete advice.. Best regards. Upvote 0
Unfortunately you don't show enough code. What kind of view are your pieces ? How did you Dim and add them ? I suspect that you dimed one view and added the same several times. Couldn't you post your project as a zip file ? (IDE menu Files / Export As Zip) so we could see what you have done and how, test it in the same conditions as you do and give you a concrete advice.. Best regards.