摘要: 方法一://须添加对System.Web的引用using System.Web.Security;.../// <summary>/// SHA1加密字符串/// </summary>/// <param name="source">源字符串</param>/// <returns>加密后的字符串</returns>public string SHA1(string source){ return FormsAuthentication.HashPasswordForStoringInConfigFil 阅读全文
posted @ 2011-05-26 11:16 把爱延续 阅读(577) 评论(2) 推荐(1) 编辑
摘要: //实现接近屏幕窗体边源吸附 private void timer1_Tick(object sender, EventArgs e) { if (this.WindowState != System.Windows.Forms.FormWindowState.Minimized) { if (Cursor.Position.X > this.Left && Cursor.Position.X < this.Right && Cursor.Position.Y > this.Top && Cursor.Position.Y &l 阅读全文
posted @ 2011-05-26 09:49 把爱延续 阅读(787) 评论(2) 推荐(2) 编辑