PDA

Click to See Complete Forum and Search --> : Creating new stuffs


nXt
May 3rd, 2002, 02:13 PM
For a card game im making. I want to have a card shop form which shows all the cards from an array which match a certain level. For example show all the cards that are level 1 and below

Is there a way to have a form that creates pictures boxes for each card equal to that level and places them next to one another?

I would use a list box but its impratical for what i am trying to achieve

Thanks!

SLH
May 4th, 2002, 04:16 AM
How are you storing the card's details, i hope you're using a custom type :)

ChiefRB
May 4th, 2002, 06:15 AM
You could create control arrays of pictureboxes, but it will be extremely inefficient on memory to do so. 52 boxes is a lot... you'd be better loading the graphics into memory using API and calling BitBlt API to draw them onto the form. Check out www.allapi.net for more on BitBlt.