Card Game && Player Hand

Jotomicron
09-18-2006, 04:24 PM
Hi.

I'm trying to design a card game and need to show the user its own hand. I first tried using PictureBoxes, but the problem is with transperency (see image at the end). Then I used Me.CreateGraphics() to draw the image directly into the form, but besides being much more dificult to handle, I need to have some events so that I know when the mouse is over the Image, when the user has Clicked the image and so on.
http://www.geocities.com/jotomicron/Cards.PNG

What do you advice?

Iceplug
09-18-2006, 04:31 PM
Store the locations of the cards on the Form with a Rectangle and then check if the mouse cursor's location (in a MouseMove or MouseDown event) is within the Rectangle of the card.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum