+ Reply to Thread
Results 1 to 3 of 3

Displaying a random image (or control) on a userform?

  1. #1
    Jon
    Guest

    Displaying a random image (or control) on a userform?

    Is it possible to display a random image on a userform when a command
    button is clicked?

    I'm trying to create a black jack game where a user can click a "Deal"
    button on a userform and it will display images of random cards (on the
    same form).

    I'm still learning VBA, so I don't even know if this can be done.

    Any help would be appreciated. Thanks.


  2. #2
    Jon
    Guest

    Re: Displaying a random image (or control) on a userform?

    After some research...maybe I can place all of the card images onto the
    userform and hide them, then if their number is drawn, I can set the
    visible property back to True? Is that possible?


  3. #3
    Jim Cone
    Guest

    Re: Displaying a random image (or control) on a userform?

    You can use an ImageList control to hold multiple images on
    a userform. See this post by Sébastien (#2) for a some more info...
    http://makeashorterlink.com/?C56E120AC
    --
    Jim Cone
    San Francisco, USA
    http://www.realezsites.com/bus/primitivesoftware


    "Jon" <[email protected]> wrote in message
    news:[email protected]...
    After some research...maybe I can place all of the card images onto the
    userform and hide them, then if their number is drawn, I can set the
    visible property back to True? Is that possible?


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1