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

//设置鼠标在控件上面时,改变光标形状
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;
}

你可能感兴趣的:(C#)