2012年3月2日

C# WinForm 软件注册的实现

摘要: SoftReg类:usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingSystem.Management;namespaceSoftRegister{classSoftReg{///<summary>///获取硬盘卷标号///</summary>///<returns></returns>publicstringGetDiskVolumeSerialNumber(){ManagementClassmc=newManagementCla 阅读全文

posted @ 2012-03-02 23:05 空白画映 阅读(1986) 评论(3) 推荐(0)

C# WinForm窗体中制作滚动的字幕

摘要: 1、添加一个定时器2、在定时器Tick事件里面写入下面代码 privatevoidtimer1_Tick(objectsender,EventArgse)//用Timer来控制滚动速度{label1.Left-=2;//设置label1左边缘与其容器的工作区左边缘之间的距离if(label1.Right<0)//当label1右边缘与其容器的工作区左边缘之间的距离小于0时{label1.Left=this.Width;//设置label1左边缘与其容器的工作区左边缘之间的距离为该窗体的宽度}} 阅读全文

posted @ 2012-03-02 22:17 空白画映 阅读(3077) 评论(5) 推荐(2)

导航