hii
thanx for reply
Random r = new Random();
for (int counter = 0; counter <= 4; counter++)
{
int item = r.Next(listBox1.Items.Count);
listBox1.Items[item].Selected = true;
}
that code run successfully but i want select only 4 values at every execution time. but some time it select 3 values and same time 5.
how i can solve that issue.