vb.net - Line Count (File Qty) from Listbox Items -
here current code using add files , check number of lines in each file selected (file qty). added seperate listbox viewing.
dim selecteditems = (from in listbox2.items).toarray() each selecteditem in selecteditems listbox1.items.add(selecteditem) listbox2.items.remove(selecteditem) dim fileqty = selecteditem.tostring dim linecount = system.io.file.readalllines(textbox1_path.text + "\" + fileqty).length listbox6.items.remove(linecount) next i'm not sure how count files selected obtain grand total.
if getselecteditems(), give indexes of selected files. .count on have number of selected items. or count number of times did for. give same answer.
Comments
Post a Comment