会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
walk along at the far from top
沙尘里的世界
博客园
::
首页
::
新随笔
::
联系
::
订阅
::
管理
::
公告
上一页
1
2
2008年12月10日
自适应分辨率
摘要: /// /// 此类可以实现窗体的随意缩放保持内部控件的相对位置 /// public class AutoSizedControllor { /// /// 控件布局类 /// private class ControlLayout { public double Widt...
阅读全文
posted @ 2008-12-10 14:29 lexod
阅读(477)
评论(0)
推荐(0)
2008年11月27日
(转)C#如何得到硬盘序列号
摘要: 硬盘序列号(Serial Number)不等于卷标号(Volume Name),后者虽然很容易得到,但是格式化分区后就会重写,不可靠。遗憾的是很多朋友往往分不清这一点。要得到硬盘的物理序列号,可以通过WMI,也就是Win32_PhysicalMedia.SerialNumber。可惜的是Windows 98/ME的WMI并不支持这个类,访问时会出现异常。受陆麟的例子的启发,我们还可以通过S.M.A...
阅读全文
posted @ 2008-11-27 18:08 lexod
阅读(458)
评论(0)
推荐(0)
2008年11月21日
文件压缩
摘要: ICompress.cs using System;using System.Collections;using System.Collections.Generic;using System.Text; namespace Dyne.Compress{ /// /// 压缩解压接口 /// public interface ICompress { ...
阅读全文
posted @ 2008-11-21 14:04 lexod
阅读(383)
评论(0)
推荐(0)
下拉框自动完成
摘要: private void comJg_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { ComboBox comb = (ComboBox)sender; if (Convert.ToInt32(e.KeyChar) == 13) ...
阅读全文
posted @ 2008-11-21 13:51 lexod
阅读(415)
评论(0)
推荐(0)
字符串验证
摘要: Invalidate.cs using System;using System.Data;using System.Configuration; using System.Text.RegularExpressions;/// /// MyStringClass 的摘要说明/// created by lxd 2008-11-04/// 用于信息验证/// namespace commClass...
阅读全文
posted @ 2008-11-21 13:37 lexod
阅读(500)
评论(0)
推荐(0)
写错误日志
摘要: EventLog.cs //本来是想用.net里面的TraceSource来实现的 //msdn上说支持多线程,可是每次写完日志的时候TraceSource不会自己关闭流文件//所以直接用流打开直接写了,以后有空改进一下TraceSource的方式写日志,毕竟可以//Trace到不同的地方(比如Console窗口,windows系统日志),呵呵//还有就是写一个支持多线程调用的类真的不容易呀us...
阅读全文
posted @ 2008-11-21 13:30 lexod
阅读(538)
评论(0)
推荐(0)
2008年4月16日
vs2005下的安装程序制作
摘要: 使用vs2005 创建的安装程序都是msi的安装包,该安装包是通过系统中的 %systemroot%\system32\msiexec.exe安装,卸载安装包:通常vs2005制作安装程序时无法自动添加卸载快捷方式,所以要自己创建快捷方式在快捷方式的目标(target)中添加 %systemroot%\system32\msiexec /x {88D311A7-87E3-4E...
阅读全文
posted @ 2008-04-16 18:12 lexod
阅读(1826)
评论(0)
推荐(0)
上一页
1
2