03-15-2011, 12:35 PM
(03-15-2011, 12:17 PM)thanasis2028 Wrote: You will have to use the code i gave you many times but changing the line:
withCode:TextBox1.Text = String.Format("{0} vs {1}", ListBox1.Items(r.Next(0, ListBox1.Items.Count)), ListBox2.Items(r.Next(0, ListBox2.Items.Count)))
You have to find a way to prevent the same name from appearing in the list again. This might be a little hard...Code:TextBox1.AppendText(String.Format("{0} vs {1}", ListBox1.Items(r.Next(0, ListBox1.Items.Count)), ListBox2.Items(r.Next(0, ListBox2.Items.Count))))
Thanks but I think what Untouch suggested is a much more reliable solution.