静心

我是小明
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2009年11月10日

摘要: 1.获取CPU序列号:public string getCpu(){string strCpu = null;ManagementClass myCpu = new ManagementClass("win32_Processor");ManagementObjectCollection myCpuConnection = myCpu.GetInstances();foreach( Managem... 阅读全文

posted @ 2009-11-10 14:34 俗人一个 阅读(317) 评论(0) 推荐(0) 编辑

2009年9月10日

摘要: 可能的原因是:在你的项目中引用了第三方组件,并且这个第三方组件是个商业组件,他在组件的主使用类定义了LicenseProvider(typeof(LicFileLicenseProvider))这个Attribute。VS2005在编译时检测到这个类的时候,会检查到组件使用的是LicFileLicenseProvider这个属性,表示有组件使用的是把许可的辅助信息保存在license.licx文件... 阅读全文

posted @ 2009-09-10 10:23 俗人一个 阅读(504) 评论(0) 推荐(0) 编辑

摘要: 1.字体颜色:lbl.ForeColor = Color.Brown;lbl.ForeColor = SystemColors.Control;2.字体样式:lbl.Font = new Font("宋体", 15, FontStyle.Bold);3.文本位置:lbl.TextAlign = ContentAlignment.MiddleLeft; 阅读全文

posted @ 2009-09-10 09:32 俗人一个 阅读(709) 评论(0) 推荐(1) 编辑

2009年7月22日

摘要: 1.只能输入数字: private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (!(((e.KeyChar >= '0') && (e.KeyChar <= '9')) || e.KeyChar <= 31)) { if (e.KeyChar == '.') { e.Handle... 阅读全文

posted @ 2009-07-22 15:44 俗人一个 阅读(1336) 评论(0) 推荐(2) 编辑