摘要: 今天做到一个功能,使用openFileDialog,选择文件,然后将选择了的文件放入listBox中,想判断如果要添加的数据在LISTBOX中已存在,就不要添加。想着是用循环遍历,但是感觉很麻烦,网上找了个方法,直接贴上代码 string str = ""; if (openFileDialog1.ShowDialog() == DialogResult.OK) { for (int i = 0; i < openFileDialog1.FileNames.Length; i++) { str= openFileDialog1.FileNames.GetValue(i 阅读全文
posted @ 2011-05-20 09:53 misoft.net 阅读(793) 评论(3) 推荐(0) 编辑

IP地址位置数据由纯真CZ88提供支持