摘要:Graphics g = ((PictureBox)sender).CreateGraphics();//创建画板Rectangle rc = new Rectangle(10, 0, ((PictureBox)sender).Width - 20, ((PictureBox)sender).Height - 1);g.DrawRectangle(new Pen(Color.DarkBlue), ...
阅读全文
摘要:Graphics g = e.Graphics;LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle,Color.SkyBlue, Color.White, LinearGradientMode.Horizontal);g.FillRectangle(brush, this.ClientRectangle)...
阅读全文
摘要:using System.Runtime.InteropServices; /// <summary> /// Register HotKeys /// </summary> /// <param name="hWnd">handle to window</param> /// <param name="id">hot key ident...
阅读全文