Quote Originally Posted by formlesstree4 View Post
...well...do you see what the Exception tells you? It says FileNotFoundException which means the path you're giving the function is invalid! So why don't you work on showing what the path is when an exception is thrown instead of ignoring and returning nothing! You might as well have put
Code:
On Error Resume Next
in your function as that's essentially what you're doing.

Note that I linked you to MSDN for the exception. You should ALWAYS consult the documentation if you don't understand what's going on. I literally went to Bing (it even works the same on Google and Yahoo! as well) and typed in "System.IO.FileNotFoundException" and the MSDN library was the first result.
Yo don't u think i'd already researched it, that "on error resume next" is no use, with the try and catch........