I am working through some intricate code and I want to make sure I am made aware of any errors that may pop up at run-time. How I have done this in the past is to create a class that I throw exceptions at and from there send emails or alerts to let me know what is going on. As I understand it there is some exception handling that is already going on within the framework via an error provider. How do I take advantage of that and still provide a streamlined way of handling my exceptions? Also, is this a proper approach to using transactions within my code?
Here is an example of my code that I am trying to work this through:
Set a public variable in the dialog form (Form2):
public String _userinfo;
On the cmdOK_Click event, I set the value of the comments textedit control to the public variable.
Then, on Form1, within the deep inner workings of the unhandled exception routine:
I am passing the exception to the form because I am formatting the exception data on the form for my own (or other savvy users') review.
So far, so good...thanks a ton for your help!!Bill
Thus the credentials. If you supply a mail server, port, and credentials...that's email...period We use this everywhere. The only thing that you cannot do is pull mail down from a POP3 server...but sending...no problem