FileNotFoundException When Accessing My.Resources
I have a resource called "Location". When I try to access it with the
statement If My.Resources.Location = "Office" Then ... I get the
following error message:
"A first chance exception of type 'System.IO.FileNotFoundException'
occurred in mscorlib.dll"
Why? Aren't resources part of the application? How can I avoid this
error (besides with a Try...Catch statement).
Someone suggested I use My.Settings instead of My.Resources, but there
is no My.Settings tab in a mobile device program.
Any suggestions?
Thanks for any assistance.
Date:Tue, 31 Jul 2007 13:06:26 GMT
Author:
|