上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 28 下一页
摘要: //定义连接字符串 String strConn = "Provider=Microsoft.Jet.OLEDB.4.0;"+ "Data Source=accountMgr.mdb;"+ "Jet OLEDB:Database Password=AccountMgrSystem"; //创建连接对象 OleDbConnection dbConn = new OleDbConnection(strConn); try { //连接数据库 dbConn.Open(); MessageBox.Show("恭喜yxHuang,成功 阅读全文
posted @ 2012-03-19 21:41 氺〤魚Oo。 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 主要代码如下://////////////////////////////////////////////////////////// //结束进程函数 public bool endProcess(String strPro) { //创建进程数组,用于保存系统中所有的进程 Process[] p = Process.GetProcesses(); //循环判断进程组中是否有要结束的进程 foreach (Process pro in p) { String str = pro.ProcessName.ToString(); try { if (str == strPro) { //结束进程 阅读全文
posted @ 2012-03-19 19:36 氺〤魚Oo。 阅读(272) 评论(0) 推荐(0) 编辑
摘要: //一行代码okCharacter.isDigit('x') 阅读全文
posted @ 2012-03-17 16:41 氺〤魚Oo。 阅读(164) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;//导入输入类public static void main(String[] args) {//创建输入对象Scanner sc=new Scanner(System.in);//获取用户输入的字符串String str=null;System.out.print("请输入任意字符:");str=sc.nextLine();System.out.println("你输入的字符为:"+str);} 阅读全文
posted @ 2012-03-16 20:34 氺〤魚Oo。 阅读(10383) 评论(0) 推荐(0) 编辑
摘要: //呵呵,这是我看了VS2008窗体设计器生成的代码才发现的...//原来在代码中也可以动态更换背景图片哦!...//starSky为资源图片名称 this.BackgroundImage = global::ScreenProtection.Properties.Resources.starSky;//设置图片在窗体中的布局 this.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center; 阅读全文
posted @ 2012-03-14 21:07 氺〤魚Oo。 阅读(378) 评论(0) 推荐(0) 编辑
摘要: //一行代码就可以啦...this.BackColor = Color.LightBlue; 阅读全文
posted @ 2012-03-13 21:50 氺〤魚Oo。 阅读(477) 评论(0) 推荐(0) 编辑
摘要: //退出C#程序Application.Exit(); 阅读全文
posted @ 2012-03-13 21:11 氺〤魚Oo。 阅读(98) 评论(0) 推荐(0) 编辑
摘要: this.FormBorderStyle = FormBorderStyle.None; //设置窗体为无边框样式this.WindowState = FormWindowState.Maximized; //最大化窗体 阅读全文
posted @ 2012-03-13 21:10 氺〤魚Oo。 阅读(206) 评论(0) 推荐(0) 编辑
摘要: //呵呵,两行代码就可以了...using System.Threading;//导入命名空间,类Thread就在此空间中Thread.Sleep(10000); 阅读全文
posted @ 2012-03-13 19:25 氺〤魚Oo。 阅读(188) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/winner/archive/2008/01/09/1032651.htmlusingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;usingSystem.Data.SqlC 阅读全文
posted @ 2012-03-12 22:21 氺〤魚Oo。 阅读(146) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 28 下一页