![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
WinForm
我本亲狂
这个作者很懒,什么都没留下…
展开
-
仿Win7屏保泡泡移动
一个泡泡的随机运动using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms;namespace原创 2015-09-21 10:50:01 · 1407 阅读 · 1 评论 -
C# Color转化问题
将Color 存入数据库中可将颜色转化为16进制 if (colorDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { Color color = colorDialog1.Color; string a = color.ToAr原创 2015-12-27 15:26:37 · 647 阅读 · 0 评论 -
汉字验证码算法
/* 例如“好”字的十六进制区位码是ba c3,前两位是区域,后两位代表位置,ba处在第26区,“好”处在此 区汉字的第35位也就是c3位置,所以数字代码就是2635。这就是GB2312汉字区位原理。根据《汉字区位码表 》我们可以发现 第15区也就是AF区以前都没有汉字,只有少量符号,汉字都从第16区B0开始,这就是 为什么GB2312字符集都是从16区开始的。对于生成中文汉字验证码来说,因为原创 2016-03-25 16:20:27 · 915 阅读 · 0 评论 -
C# 定时器理解
定时器分为单线程定时器和多线程定时器: 1.单线程定时器 winform中使用System.Windows.Forms.Timer ; wpf中使用System.Windows.Threading.DispatcherTimer; 特点是: 单线程定时器,线程安全;运行在UI线程,可直接更新UI画面;执行效率不高,适用于小任务。一般不能执行IO,网络请求等耗时操作,否则阻碍UI线程,界面卡原创 2017-07-25 09:50:27 · 663 阅读 · 0 评论