I want to have a single error hand for the whole application
there are about 6 to 7 forms in it

any error accurres , i want to type the information into a log file and should unload the the current form

where should i write the code

my applications loads form sub main()


Please hepl urgent