上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 26 下一页
摘要: 想使用VS2010尝尝鲜,但是也用不到4.0的库,想着以后用VS2010做了改动,VS2010仍然可以用,就研究查看了一下.SLN文件,发现VS2008的SLN文件的开头会有如下代码:Microsoft Visual Studio Solution File, Format Version 10.00# Visual Studio 2008打开VS2010的SLN文件的开头却是如下代码:Microsoft Visual Studio Solution File, Format Version 11.00# Visual Studio 2010试着将VS2010的SLN的前面这两行替换成了VS2 阅读全文
posted @ 2010-07-26 21:26 deepwishly 阅读(163) 评论(0) 推荐(0) 编辑
摘要: WinForm 单例publicstaticChatFormnewForm=null;publicstaticChatFormGetInstance(){if(newForm==null||newForm.IsDisposed==true)//newForm.IsDisposed==true必需,否则会出现“访问已释放资源”的异常{newForm=newChatForm();}else{newForm.Activate();}returnnewForm;}//调用:ChatFormnewForm=ChatForm.GetInstance();newForm.Ipcon=Ip;newForm.S 阅读全文
posted @ 2010-07-23 22:04 deepwishly 阅读(199) 评论(0) 推荐(0) 编辑
摘要: private void button2_Click(object sender, EventArgs e) { MessageBox.Show("ABC",MessageBoxButtons.OKCancel); } if(DialogResult.OK==MessageBox.Show("ABC",MessageBoxButtons.OKCancel)){//点击了OK} else{//点击了Cancel} 阅读全文
posted @ 2010-07-22 22:28 deepwishly 阅读(524) 评论(0) 推荐(0) 编辑
摘要: //消息框中需要显示哪些按钮,此处显示“确定”和“取消”MessageBoxButtons messButton = MessageBoxButtons.OKCancel;//"确定要退出吗?"是对话框的显示信息,"退出系统"是对话框的标题//默认情况下,如MessageBox.Show("确定要退出吗?")只显示一个“确定”按钮。DialogResult dr = MessageBox.Show("确定要退出吗?", "退出系统", messButton);if (dr == DialogRe 阅读全文
posted @ 2010-07-17 17:37 deepwishly 阅读(1929) 评论(0) 推荐(0) 编辑
摘要: 此文在优化网页打开速度及SEO方面,以网站浏览者,网站制作者,及服务器管理员的身份分别阐述了我们应该如何做才能解决网页打开慢的问题,向作者致敬互联网带宽越来越宽,似乎让网页的加载速度得到了质的飞跃。其实不然,因为随着带宽的提高,网页上的对象也越来越多,因此加快网页打开速度还是一个重要的课题。加快网页的打开速度,有三个路径,一是提高网络带宽,二是用户在本机做优化,三是网站设计者对网页做一定的优化。这篇文章站在一个网站设计者的角度,分享一些优化网页加载速度的小技巧。一、优化图片几乎没有哪个网页上是没有图片的。如果你经历过56K猫的年代,你一定不会很喜欢有大量图片的网站。因为加载那样一个网页会花费. 阅读全文
posted @ 2010-07-15 20:31 deepwishly 阅读(766) 评论(0) 推荐(0) 编辑
摘要: 1.利用Cache对象。http://msdn.microsoft.com/zh-cn/library/ms227644(v=VS.80).aspx2.利用浏览器3.利用数据库。4.优化查询(数据库索引) 阅读全文
posted @ 2010-07-15 20:09 deepwishly 阅读(222) 评论(0) 推荐(0) 编辑
摘要: http://www.csharpwin.com/csharpspace/2743.shtml 阅读全文
posted @ 2010-07-14 22:25 deepwishly 阅读(103) 评论(0) 推荐(0) 编辑
摘要: private void barButtonItemHelp_ItemClick(object sender, ItemClickEventArgs e) { string v_OpenFilePath = @"C:/Program Files/TJWTCS/天津抄表软使用说明文档V1.0.doc"; //先判断文件是否存在,不存在则提示 if (!System.IO.File.Exists(v_OpenFilePath)) { MessageBox.Show("安装根目录下帮助文件不存在!", "操作提示"); return; } 阅读全文
posted @ 2010-07-11 15:09 deepwishly 阅读(256) 评论(0) 推荐(0) 编辑
摘要: http://www.cn-web.com/shtml/article/net/wform/2009/02/04/441.shtml dockPanel2.Dock = DockingStyle.Right; dockPanel2.Visibility = DockVisibility.Visible 阅读全文
posted @ 2010-07-11 14:48 deepwishly 阅读(349) 评论(0) 推荐(0) 编辑
摘要: private void Restart() { Thread thtmp = new Thread(new ParameterizedThreadStart(run)); object appName = Application.ExecutablePath; Thread.Sleep(2000); thtmp.Start(appName); } private void run(Object obj) { Process ps = new Process(); ps.StartInfo.FileName = obj.ToString(); ps.Start(); } /// /// 设置 阅读全文
posted @ 2010-07-02 20:38 deepwishly 阅读(195) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 26 下一页