摘要:
(一)写入:Stream ms;byte []picbyte; openFileDialog1.Filter = SystemConst.IMAGE_FILE_FILTER;if (this.openFileDialog1.ShowDialog() == DialogResult.OK) {if ((ms = openFileDialog1.OpenFile()) != n...
阅读全文
posted @ 2010-06-28 12:34
liufei
阅读(817)
推荐(0)
编辑
摘要:
private void CopyFile(string fromFile, string toFile, int lengthEachTime) { FileStream fileToCopy = new FileStream(fromFile, FileMode.Open, FileAccess.Read); FileStream copyToFile = new FileStream(toF...
阅读全文
posted @ 2010-06-28 12:33
liufei
阅读(359)
推荐(0)
编辑
摘要:
usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.We...
阅读全文
posted @ 2010-06-28 12:28
liufei
阅读(194)
推荐(0)
编辑
摘要:
C#中控制IIS服务停止ServiceController sc = new ServiceController("iisadmin");if(sc.Status=ServiceControllerStatus.Running) sc.Stop(); 启动IIS服务ServiceController sc = new ServiceController("iisadmin"); sc.Start(...
阅读全文
posted @ 2010-06-28 12:26
liufei
阅读(586)
推荐(0)
编辑
摘要:
来源:互联网winform程序相对web程序而言,功能更强大编程更方便,但软件更新却相当麻烦,要到客户端一台一台地升级,面对这个实际问题,在最近的一个小项目中,本人设计了一个通过软件实现自动升级技术方案,弥补了这一缺陷,有较好的参考价值。一、升级的好处 长期以来,广大程序员为到底是使用Client/Server,还是使用Browser/Server结构争论不休,在这些争论当中,C/S结构的程序的可...
阅读全文
posted @ 2010-06-28 12:25
liufei
阅读(328)
推荐(0)
编辑