随笔分类 -  1、Winform开发资料/实例

上一页 1 2 3 4

C#画半透明色实例,可用于自绘菜单等
摘要: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), ... 阅读全文

posted @ 2010-08-24 14:19 和轩僮 阅读(3567) 评论(4) 推荐(1)

C#中渐变色的代码实例,用于自绘菜单
摘要:Graphics g = e.Graphics;LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle,Color.SkyBlue, Color.White, LinearGradientMode.Horizontal);g.FillRectangle(brush, this.ClientRectangle)... 阅读全文

posted @ 2010-08-24 14:08 和轩僮 阅读(1468) 评论(1) 推荐(1)

【转】获取其他程序的按键消息,利用钩子函数
摘要:using System.Runtime.InteropServices; /// <summary> /// Register HotKeys /// </summary> /// <param name="hWnd">handle to window</param> /// <param name="id">hot key ident... 阅读全文

posted @ 2010-08-24 09:40 和轩僮 阅读(811) 评论(3) 推荐(0)

上一页 1 2 3 4

导航