摘要:C#得到硬盘序列号 //================调用方法================================== HardDiskInfo hdd = AtapiDevice.GetHddInfo(0); // 第一个硬盘 Console.WriteLine("Module Number: {0}", hdd.ModuleNumber); Console.WriteLine("...
阅读全文
摘要://从TreeView2控件中,拖放节点到TreeView1中 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; usi...
阅读全文
摘要:ASP.NET程序中常用的三十三种代码 1. 打开新的窗口并传送参数: 传送参数: response.write("<script>window.open(’*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"’)</script>") 接收参数: string a = Request.QueryString("id"); ...
阅读全文
摘要:我有办法: 先前贴的这篇文章大家可能觉的不太能理解,我注释也确实写的很少,步骤也不是很详细,现在重修改一下,希望大家能指正。 1:控件(破解版,只限.Net2005)和皮肤下载地址如下(用影音传送带等下载工具下载): http://download1.csdn.net/down3/20070605/05142029888.rar DEMO程序(含源码) http://dl2.csdn.net/do...
阅读全文
摘要:当我们把系统的字体改为大字号的话,如果我们的Form上的text和control不跟着变大的话,那会使我们的界面很难看。但是很幸运的是在WinForm中已经提供了这个功能,使用也很方便,只需要在Form的Load事件中从新设置Form的字体为系统的字体。 二 请看效果如下:(均为系统字体为特大号时) 修改后: 修改前: 三 相关的代码1: using System...
阅读全文