Information générale
Catégorie:
Codage, syntaxe et commandes
>Matt,
>
>I have my container shuffleing the controls. Now the container is a 4 x 4 and has 15 controls in it which leaves a space empty. I am tring to get the code right that will move a control into the empty space when clicked only if the button is adjacent to the empty space. I am having trouble testing for a button residing to the left, top, bottom, right of a clicked button.
Create a two dimensional array where you store with a logical field which positions are filled.
Also create a property to the command button to store the postion of that button.
With this information you can do you checking.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement