Randomizing objects on runtime in VB 6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kiseitai2
    New Member
    • Jul 2007
    • 93

    Randomizing objects on runtime in VB 6

    Hi there. me and a group of classmates/ friends are developing a crazy little game. However, we cannot randomize the location of the command buttons on a frame object during runtime. We are using Visual Basic 6. Any help appreciated. Thanks
  • kiseitai2
    New Member
    • Jul 2007
    • 93

    #2
    I just got the way to randomize, but to make it more difficult I would like to obtain the index number of let's say command1() (which is an array of command1s from 0 to 352)

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      The index number of which button? Do you mean the number of the button that was clicked by the user? If so, it's provided as the Index property in the Click event.

      Comment

      Working...