风轻云淡愿君赏,消尽烦忧心亮敞。夏去秋来添衣裳,一声问候祝安康!

2012年7月7日

程序退出时,显示程序运行时间

摘要: 关闭程序后,显示程序运行时间。代码如下: View Code 1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System. 阅读全文

posted @ 2012-07-07 12:28 荣林 阅读(192) 评论(0) 推荐(0) 编辑

2012年6月24日

格式化日期

摘要: using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { C 阅读全文

posted @ 2012-06-24 11:42 荣林 阅读(115) 评论(0) 推荐(0) 编辑

2012年2月15日

C#.NET 支持文件拖放

摘要: 新建文本框txtSrcFname,设计其AllowDrop为true,处理DragEnter、DragDrop 事件。 源码: private void txtSrcFname _DragEnter(object sender, DragEventArgs e) { if (e.Data.GetDa 阅读全文

posted @ 2012-02-15 12:33 荣林 阅读(322) 评论(2) 推荐(0) 编辑

2011年12月25日

制作简易浏览器

摘要: 我用的是Visual Studio 2005开发工具。新建一个C#项目(Windows应用程序),这里我取项目名称为Broswer保存到F:盘。 基本控件有:按钮<Button>、文本框<TextBox>、Web控件<WebBrowser>。右键单击Button,选择属性,双击闪电符号,双击Clic 阅读全文

posted @ 2011-12-25 20:27 荣林 阅读(311) 评论(0) 推荐(0) 编辑

2011年12月19日

C/S代码一例

摘要: 在博客园下的又稍加改进成了现在的样子 Server code using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Net;using System.Net.Soc 阅读全文

posted @ 2011-12-19 23:04 荣林 阅读(264) 评论(0) 推荐(0) 编辑

导航