![]() |
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. |
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? |
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" wrote in message oups.com... 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? |
All times are GMT +1. The time now is 12:18 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com