AsyncSockets ??

Tigran

Member
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 doesnt respond to any event...
May someone help me in this problem ??
I realy dont understang why it does like this...
 
try this ..

Code:
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 its impossible call methods of controls which were created in deverse threads ...
But, I just resolve this problem:)
Its enough just call Invoke method of DataGrid to obligate call
methods and properties in same thread..
However great thanks !!:)
 

Similar threads

Back
Top