Loaded file not generating in a listview - vb.net -



Loaded file not generating in a listview - vb.net -

i trying write programme can load multiple different text files, containing encrypted values, individually create listview of encryptions first column , decrypted value in sec column. problem running when load file... nil happens. there no error, no crash, nothing. believe not reading file path correctly, new intuition. here code:

private sub loadbtn_click(sender system.object, e system.eventargs) handles loadbtn.click valuelist.clear() valuelist.columns.add("encypted file", 150) valuelist.columns.add("decrypted", 100) dim newfile new openfiledialog() seek if newfile.showdialog = windows.forms.dialogresult.ok dim author new system.io.streamreader(newfile.filename) dim line() string until writer.peek <> -1 dim newline listviewitem line = writer.readline.split("="c) newline.text = line(0).tostring valuelist.items.add(newline) newline.subitems.add(crypto.aes_decrypt(line(0))) loop writer.close() end if grab ex exception valuelist.items.add("error reading file." & ex.message) end seek end sub

there notification in line

newline.text = line(0).tostring

that variable 'newline' used before has been assigned value. thought assigning value @ time guess wrong. not cause runtime error, thought should create not of it.

vb.net listview

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -