Newbie Question about PictureBoxes

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I'm building a pyramid solitaire game where the pictureboxes are created
and placed dynamically. I want the user to only be able to select a
card that is not being partially covered by another card.

Does anyone have any suggestions?

Thank you in advance.
 
You can store an internal z-order for every picture box you have. Then, let
the user pick only the top card from the z-order lookup. This is probably
easier than dynamically calculating the rects for every control.

-vJ
 
Back
Top