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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top