Hi Trint,
If I understand your problem correctly the whiteness is caused by a busy
application not having the time to repaint the controls. To solve this
you could handle the foreach loop in a different thread, keeping the GUI
thread up to speed, or call Application.DoEvents() ever so often inside
your loop to handle any waiting events.
On 15 Mar 2005 06:05:05 -0800, trint <tr***********@gmail.com> wrote:
This application has a for loop that calls a large function:
"foreach (string invoice in listBox2.Items)"
and causes the window to turn white and loose view of all control.
How can I keep this from happening?
Thanks,
Trint
--
Happy Coding!
Morten Wennevik [C# MVP]