06 2013 档案
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Diagnostics;namespace KillProcess{ class Program { static void Main(string[] args) { Console.WriteLine("结束所有CMD.EXE程序"); Process[] ps = Process.GetProcesses(); ...
阅读全文
摘要:首启动:进入“解决方案资源管理器”找到Program.cs中的Main方法Application.Run(new Form*());把Form*换成首启动的窗体的Name,就OK了。跳转:Form1 s=new Form1();s.Show();this.Hide(); //隐藏完全退出:Application.ExitThread();
阅读全文
摘要:原因: 安装了vs2010 又安装了 sql server 2008 就会出现这问题 解决办法: 1.从一台没装.NET3.5的机子上复制C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\zh-CN路径下的文件覆盖就可以 2.或者重装中文版的framewor...
阅读全文
摘要:this.Left = (DeskWidth - this.Width) / 2;this.Top=(DeskHeight - this.Height) / 2;
阅读全文