Yes it's totally possible (just reference System.Windows.Forms.dll). Whether it's a good thing for a class library to report errors using message boxes is another question. I wouldn't recommend doing it. Let the UI application handle reporting errors to the user instead.
|