|
-
May 23rd, 2013, 06:21 PM
#3
Thread Starter
Hyperactive Member
Re: getIcon func exceptions
 Originally Posted by formlesstree4
...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........
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|