-
Update the listbox
I have a listbox and it add an item when I click the button. My problem is, it doesn't show the item that was added until the process is not yet finish. What I want is that every time I insert string in the listbox, it will show that the item is added one by one. I try to use the refresh but nothing happen.
Any Suggestions... Thanks guys.
-
Re: Update the listbox
you could do this...
Code:
for (int i = 0; i < 10; i++)
{
listBox1.Items.Add(i.ToString());
Application.DoEvents();
}
Thats the simple answer.
-
Re: Update the listbox
Thanks. That's what I'm looking for. I used this in vb.net but I can't remember the syntax.