Chinaunix首页 | 论坛 | 博客
  • 博客访问: 825556
  • 博文数量: 101
  • 博客积分: 1311
  • 博客等级: 中尉
  • 技术积分: 1191
  • 用 户 组: 普通用户
  • 注册时间: 2009-07-25 12:15
文章分类

全部博文(101)

文章存档

2012年(101)

分类: 嵌入式

2012-06-12 23:36:48

private void button_MouseEnter(object sender, EventArgs e)

{

if( sender is Button)

{

(sender as Button).FlatAppearance.BorderSize = 2;

(sender as Button).FlatAppearance.BorderColor = System.Drawing.Color.Blue;

}

}

private void button_MouseLeave(object sender, EventArgs e)

{

if (sender is Button)

{

(sender as Button).FlatAppearance.BorderSize = 1;

(sender as Button).FlatAppearance.BorderColor = System.Drawing.Color.Black;

}

}

阅读(2668) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~