Card Game && Player Hand

09-18-2006, 05:24 PM

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.

What do you advice?

09-18-2006, 05: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