fusionstream
April 3rd, 2008, 07:38 AM
A DataGridView is created by the main class.
On aButtonClick, I want to start a new thread to automatically update the grid every 5 seconds.
I made the correct references and everything works (and is passed) smoothly. The only problem is that apparently, when I try to access the grid(which, again, was made in another thread, the debugger stops everything and tells me that an exception has occured as the cross thread operation is not valid.
In short, I want to edit a dataGridView made by threadA from threadB.
Any thoughts?
On aButtonClick, I want to start a new thread to automatically update the grid every 5 seconds.
I made the correct references and everything works (and is passed) smoothly. The only problem is that apparently, when I try to access the grid(which, again, was made in another thread, the debugger stops everything and tells me that an exception has occured as the cross thread operation is not valid.
In short, I want to edit a dataGridView made by threadA from threadB.
Any thoughts?