"JohnR" <(E-Mail Removed)> wrote in message
news

yN%d.12668$Ue6.1777@trndny04...
> I have an application that uses a custom DLL. The DLL needs to be
> in the same directory as the executable. If it's not I want to catch the
> error
If you are loading the assembly yourself, you can catch this.
If it is being loaded "for you", because you have a reference to it
and are creating objects from it using New (which is what you'd
/normally/ do), then I don't think you can. The Exception gets
thrown [long] before any of /your/ code gets a look in.
Regards,
Phill W.