日期:2014-05-19  浏览次数:20747 次

打开多个文档的问题
OpenFileDialog1.open方法打开的界面下有book1.txt,book2.txt,book3.txt
我已将OpenFileDialog1.Multiselect属性设置为true即允许同时打开多个文档;然而我接下来的程序只能对一个文档处理,比如我只打开book1.txt可以运行,而同时打开三个文本就只是对book1.txt处理,其它两个文件未处理,我想问下采用什么方法可以将三个文档同时处理!

------解决方案--------------------
string []name;
name = OpenFileDialog1.FileNames
int n = name.Getlength(0)