AsyncSockets ??

Tigran

Newcomer
Joined
Sep 10, 2003
Messages
7
Hi..
I have a problem..
I send a DataSet throw the network, in reality now only on my PC,
by Async Sockets..I get DataSet in right format, but when I want write

dataGrid1.DataSource = ds; // ds - DataSet which I got

or

dataGrid1.DataMember = ds.Tables[0].TableName;
dataGrid1.DataSource = ds

or

dataGrid1.DataSource = ds.Tables[0];


in all cases my programm dead, it just stops and doesn't respond to any event...
May someone help me in this problem ??
I realy don't understang why it does like this...
 
try this ..

Visual Basic:
try 
dataGrid1.DataSource = ds; // ds - DataSet which I got

catch

dim err as Exception
msgbox("Error: " & err.message)

end try

what happens?
 
I got the message that it's impossible call methods of controls which were created in deverse threads ...
But, I just resolve this problem:)
It's enough just call Invoke method of DataGrid to obligate call
methods and properties in same thread..
However great thanks !!:)
 
Back
Top