hello,
Hope someone can help with listbox problem.I have two forms.on form 1 i have button and textbox,form 2 there is a listbox.I have 100 random numbers in listbox.when i press button on form1 i want textbox to display a totally different number each time.I already done this in vb6 but i want to convert it to vb 2008.
in vb6 i use
< Code:
  1. Randomize
  2. Form1.Text1.Text = Form2.List1.List(Int(Rnd() * Form2.List1.ListCount))
This generates a different number in textbox.