Hi,
I know the topic of cross-thread operations from the UI has been addressed
several times, but if anyone could provide some insight for my particular
scenario, I would be thankful...
Using Visual Basic (VS 2005 Beta 1)
In a Public class X, I have a TCP connection setup to parse and dump data
into a DataTable
On a Windows form I have a DataGrid and a button. When I click the button, a
new instance of the class X is created, the TCP connection is opened, and the
DataGrid's DataSource property is set to the the DataTable of class X.
I'm getting an 'Illegal Cross thread operation' being thrown from the class
saying that the DataGrid is being accessed on a thread other than the one it
was created on.
How do I code for this (seemingly simple) scenario?
Much thanks,
-Todd
--
Management Analytics, Inc.
http://ManagementAnalytics.com