C#设置鼠标在控件上面时,改变光标形状

时间:2014-12-10 10:44:31   收藏:0   阅读:937

//设置鼠标在控件上面时,改变光标形状
private void pictureBox_macroLogo_MouseHover(object sender, System.EventArgs e)
{
  this.Cursor = Cursors.Hand;
}

private void pictureBox_macroLogo_MouseLeave(object sender, System.EventArgs e)
{
  this.Cursor = Cursors.Default;
}

原文:http://www.cnblogs.com/fx427103/p/4154770.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!