"Web Forms" , web application
"windown FOrms" , windows applciation(think client)
Yes, this implementation will catch all unhandles exception.
1. Register any/both(UI and Non_UI) accordingly in ur application.
2. Change the logic to write to a file or do as it is given in the sample writing to the EventLog. You can also add some other data if possible to the logs.
3. Next time when u have the same problem, check the log/eventlog to get more details on the error which should give some clues.
Yep, Form setting will override the settings which is there in app. config file. Now u have a method which will be trigered so you can can write any information possible.Try to log exception message, stack trace and recursively loop the inner exception and get inner exception msgs.