No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
If it is a Windows app, then you can use the Application.ThreadException event: [CODE]static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.ThreadException += new System.Threading.ThreadExceptionEventHandler(Application_ThreadException); Application.Run(new MainForm()); } private static void Application_ThreadException(object sender, System.Threading.ThreadExceptionEventArgs e) { // add code to send email here } [/CODE] The ThreadException event is raised whenever there …
You are also being affected by the fact that C# is case-sensitive. You defined your property as "click" (all lower case). But your code referenced ppay.Click (capitalized). Most likely you can thank auto-complete for that. I would also suggest that you choose your names more carefully. "click" is an integer, …
The End.
avertyn