D
Daniel
Hi guys
I have a form with my gui on, just some list boxes.
And a class that handles incoming data.
i want to, on receiving data, update my gui.
However even though i have an instance created in my class handling the
receiving data of the gui form if i try and update the gui directly i get a
cross thread error, trying to access the form listbox from a thread other
that the one it was created on.
its because the method that called the gui update method is asynchronous.
How do i get round this, i have tried using events and delegates getting the
class to, on receving data, fire an event and then hook that event to the
gui so it updates on the event firing but this still causes the same error.
This must be possible right?
I have a form with my gui on, just some list boxes.
And a class that handles incoming data.
i want to, on receiving data, update my gui.
However even though i have an instance created in my class handling the
receiving data of the gui form if i try and update the gui directly i get a
cross thread error, trying to access the form listbox from a thread other
that the one it was created on.
its because the method that called the gui update method is asynchronous.
How do i get round this, i have tried using events and delegates getting the
class to, on receving data, fire an event and then hook that event to the
gui so it updates on the event firing but this still causes the same error.
This must be possible right?