摘要: showdialog在MSDN上作用为在新窗体关闭前,不允许后面代码的执行,但是在特定情况,需要知识提示,不许要强制关闭,就要执行后面代码,只需把Form.ShowDialog()中的Form声明为私有,就行了但注意根据需要设置释放窗体的具体位置 阅读全文
posted @ 2012-10-30 10:57 独孤正龙 阅读(165) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms;using System.Diagnostics;using System.Runtime.InteropServices;using System.Reflection;namespace OnlyProcess{ static class Program { [STAThread] static void Main() { MessageBox.Show("ddddd"); Process 阅读全文
posted @ 2012-10-30 10:52 独孤正龙 阅读(289) 评论(1) 推荐(0)