net中加载多个文件

net中加载多个文件

本文介绍了在vb.net中加载多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何同时将两个文件加载到列表框中?

How can we load two files into a listbox at the same time?

推荐答案

dim ReadLineFromFile as string = file.readline
listbox1.items.add(ReadLineFromFile)



或者您可以创建一个数据表/通用列表来存储所有文件中的详细信息,然后将其添加到listbox1的数据源中

3.关闭文件

并重复要导入的其余文件.

读取文件示例 [ ^ ]



or you can create either a datatable / generic list to store the details in from all the files and then add it to the the listbox1''s datasource

3. close the file

and repeat for the remaining files that you want to import.

Read file example[^]



这篇关于在vb.net中加载多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-31 09:09