-
I know this may seem incredibly trivial but could someone please help me:
I am making a card game and have an imagelist with all the cards in a pack. Once I have randomly dealt the cards (to fourlist boxes) I then need to say:
Code:
cardno = Val(Me.p1.List(0))
Me.Card1.Picture = Me.Cards.ListImages.Item(cardno)
etc.
VB says this line:
Code:
Me.Card1.Picture = Me.Cards.ListImages.Item(cardno)
is wrong. Any help please.
Thank you very much
Richard Charlton
-
Hello,
Try this instead,
Code:
Me.Card1.Picture = Me.Cards.ListImages.Item(cardno).Picture
Hope it helps,
Desire.
-
Thanks
Thanks very much - stupid aren't I?