开发者

using timer to read file in vb.net

开发者 https://www.devze.com 2023-02-10 18:12 出处:网络
i\'m trying to parse a huge csv file in vb.net application but it gets stuck...i think using timer will be a good option but i dont know how to implement fi开发者_如何学JAVAle reading through timer...

i'm trying to parse a huge csv file in vb.net application but it gets stuck...i think using timer will be a good option but i dont know how to implement fi开发者_如何学JAVAle reading through timer...can someone please guide me how to read a complete file through timer


If by stuck, you mean that your GUI stops functioning, you should consider running your parse function on a background thread. This will keep your UI functioning while your file is parsed.

Here is an article about implementing async callbacks in .Net. It's actually written in C#, but hopefully you can translate it VB.Net.

0

精彩评论

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

关注公众号