开发者

a problem of leading data with HTTP?

firstlly im sorry for my poor english

i have a problem with a chat application in vb.net the problem is occuring when i loading data from a XML file , my form is not responding.

i have a solution for that problem but i need other solutions

thank 开发者_如何学Pythonyou


Basically, you should either perform the IO in a separate thread using synchronous calls, or use asynchronous calls and handle events indicating progress etc. Using a separate thread is probably the simpler approach - and then use Control.BeginInvoke or Dispatcher.BeginInvoke to get the data back to the UI thread when it's finished loading.

Don't block the UI thread waiting for IO.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜