J
Johnny Jörgensen
Hi I have a procudure that takes some time and thus slows down the main
system. I want to put it in a backgroundworker component to run it
asynchroneously. But in the procedure, I want to update a TreeView control I
have on my main form.
When I try to do that, I get the error "Cross-thread operation not valid:
Control 'TreeView1' accessed from a thread other than the thread it was
created on"
I seem to have read something about that poblem before, but can't remember
if there's a solution to it...
Please advice asap,
Johnny J.
system. I want to put it in a backgroundworker component to run it
asynchroneously. But in the procedure, I want to update a TreeView control I
have on my main form.
When I try to do that, I get the error "Cross-thread operation not valid:
Control 'TreeView1' accessed from a thread other than the thread it was
created on"
I seem to have read something about that poblem before, but can't remember
if there's a solution to it...
Please advice asap,
Johnny J.