Hi there! I am working on a math game with wild numbers. I am
It works great, but the issue is I don't want just the first 6 items copied, but the whole list box, the problem is sometimes the listbox could have 5 items, 10, or even 13. I definitely will always have enough label captions, but is there a way for the listbox to copy whatever is in there?
Thanks a lot!!
VB Code:
'This code copies the wild numbers to the big window ShowWildNumbers.Show Dim lIndex As Long If WildList.ListCount Then lIndex = Int(Rnd * WildList.ListCount) Dim i As Integer For i = 0 To 5 ShowWildNumbers.WildNumbLBL(i).Caption = WildList.List(i - 1) Next End If
It works great, but the issue is I don't want just the first 6 items copied, but the whole list box, the problem is sometimes the listbox could have 5 items, 10, or even 13. I definitely will always have enough label captions, but is there a way for the listbox to copy whatever is in there?
Thanks a lot!!