Results 1 to 3 of 3

Thread: Please help - image trouble - very simple question

  1. #1

    Thread Starter
    Addicted Member RCharlton's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    202
    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



  2. #2
    Lively Member
    Join Date
    Jun 1999
    Location
    East Anglia, England
    Posts
    73
    Hello,
    Try this instead,
    Code:
    Me.Card1.Picture = Me.Cards.ListImages.Item(cardno).Picture
    Hope it helps,
    Desire.

  3. #3

    Thread Starter
    Addicted Member RCharlton's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    202

    Thanks

    Thanks very much - stupid aren't I?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width