Hello All,
I am in desperate need of your smarts!
I'm attempting to auto generate X number of pictureboxes when a program loads.
I'm generating 2 different arrays that will produce some number of picture boxes.
When I click button 1, I want to send a separate picture box near one of the auto generated picture boxes and remove a designated-array-generated picture box. I do not want to remove all picture boxes, only a set amount.
For more clarification.. ..
I'm not looking for the program to do this: "if picturebox1 is close to pictureboxArray 1[] then delete some number of picture boxes in that array"
I'm looking to do this: "if picturebox1 is sent to area A then delete some number of picture boxes in the array that belongs to area A"
If you're looling at the attached .jpg, the blue picture box will move close to the red or green picture boxes (randomly) and I'm lost on how to get it to delete the picture box once it arrives in one of those destinations. I can delete the pictureboxes just fine on a double click but that's all i've pulled off!
Code is attached in PictureBoxArray AndDelete.txt
Thanks again!
I am in desperate need of your smarts!
I'm attempting to auto generate X number of pictureboxes when a program loads.
I'm generating 2 different arrays that will produce some number of picture boxes.
When I click button 1, I want to send a separate picture box near one of the auto generated picture boxes and remove a designated-array-generated picture box. I do not want to remove all picture boxes, only a set amount.
For more clarification.. ..
I'm not looking for the program to do this: "if picturebox1 is close to pictureboxArray 1[] then delete some number of picture boxes in that array"
I'm looking to do this: "if picturebox1 is sent to area A then delete some number of picture boxes in the array that belongs to area A"
If you're looling at the attached .jpg, the blue picture box will move close to the red or green picture boxes (randomly) and I'm lost on how to get it to delete the picture box once it arrives in one of those destinations. I can delete the pictureboxes just fine on a double click but that's all i've pulled off!
Code is attached in PictureBoxArray AndDelete.txt
Thanks again!
Comment