hello.
i have: 1 listbox, 1 label and 1 command button
there are 5 names in listbox
and i want is:
command1_click()
label1.caption = rnd * list1.list(name)
end sub
something like that...but i dont know how?
thanks in advance:afrog:
☻ jaypee ☻
Printable View
hello.
i have: 1 listbox, 1 label and 1 command button
there are 5 names in listbox
and i want is:
command1_click()
label1.caption = rnd * list1.list(name)
end sub
something like that...but i dont know how?
thanks in advance:afrog:
☻ jaypee ☻
try this
P.S. doing it this way should work no mater how many names you add.Code:Private Sub command1_Click()
label1.Caption = list1.List(Int(list1.ListCount * Rnd))
End Sub
thanks...for the help
You're welcome.
Do you understand how it works?