摘要: http://www.cnblogs.com/yugen/archive/2010/08/10/1796864.html 1.this.Close(); 只是关闭当前窗口,若不是主窗体的话,是无法退出程序的,另外若有托管线程(非主线程),也无法干净地退出; 2.Application.Exit(); 阅读全文
posted @ 2017-10-17 13:51 LuoCore 阅读(258) 评论(0) 推荐(0)
摘要: 在网上找了很多例子都试邮件发送都失败,今天无意有试了一下居然行了 public static void ErrorMessageMail(string _subject, string _body) { //创建MailMessage对象 System.Net.Mail.MailMessage ma 阅读全文
posted @ 2017-10-17 13:48 LuoCore 阅读(286) 评论(0) 推荐(1)