Results 1 to 2 of 2

Thread: Random image help **code included**

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2009
    Posts
    31

    Random image help **code included**

    i want to replicate a random dice roll by using a image of a dice appearing in a picture box. Can someone please modify my code so it can accomplish the desired action. Right now it just writes a random number, but i want it to show a image of a dice.

    Private Sub cmdEnd_Click()
    End
    End Sub

    Private Sub cmdStart_Click()
    Dim randomvalue As Integer
    randomvalue = CInt(Int((6 - 1 + 1) * Rnd() + 1))
    picOutput1.Print ; randomvalue

    End Sub

  2. #2
    Hyperactive Member jp26198926's Avatar
    Join Date
    Sep 2008
    Location
    General Santos City, Philippines
    Posts
    310

    Re: Random image help **code included**

    try..
    Attached Files Attached Files
    "More Heads are Better than One"

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