Monday, 15 June 2015

notsupportedexception - VB.NET “not supported Exception”? -



notsupportedexception - VB.NET “not supported Exception”? -

dose know how can around “not supported exception”?

'amends label2 file name text (works in conjunction part 00-ab form1)... label2.text = "project: " & form1.label5.text & " not found" 'sugesting other related files in folder... dim di new io.directoryinfo("v:\" & label2.text & "\tekeningen\tekenwerk de mar\definitief\" & label2.text & ".pdf") dim diar1 io.fileinfo() = di.getfiles() dim dra io.fileinfo each dra in diar1 if system.io.path.getextension(dra.name).tolower() = "pdf" listbox1.items.add(dra) end if next end sub

it means path given not supported class directoryinfo. has directory, , seems trying utilize pdf file.

maybe wanted this:

dim di new io.directoryinfo("v:\" & label2.text & "\tekeningen\tekenwerk de mar\definitief\")

and, way, utilize pdf files in faster way without need check files on folder:

dim diar1 io.fileinfo() = di.getfiles("*.pdf")

vb.net notsupportedexception

No comments:

Post a Comment