简体   繁体   中英

using timer to read file in vb.net

我正在尝试解析vb.net应用程序中的一个巨大的csv文件,但它被卡住了...我认为使用计时器将是一个不错的选择,但我不知道如何通过计时器来实现文件读取...有人可以指导我吗如何通过计时器读取完整的文件

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM