110,571
社区成员
发帖
与我相关
我的任务
分享
private void picbox_MouseMove(object sender, MouseEventArgs e)
{
if (e.X >= 0 && e.X < Convert.ToInt32(picbox.Width / 2))
{
picbox.Cursor = new Cursor("arrow_left.ico");
}
if (e.X >= Convert.ToInt32(picbox.Width / 2) && e.X<=picbox.Width)
{
picbox.Cursor = new Cursor("arrow_right.ico");
}
}
private void picbox_MouseClick(object sender, MouseEventArgs e)
{
if (e.X >= 0 && e.X < Convert.ToInt32(picbox.Width / 2))
{
picbox.Cursor = new Cursor("arrow_left.ico");
mf = "left";
[导入上一张图...]
}
if (e.X >= Convert.ToInt32(picbox.Width / 2) && e.X <= picbox.Width)
{
picbox.Cursor = new Cursor("arrow_right.ico");
mf = "right";
[导入下一张图...]
}
}
private void picbox_MouseMove(object sender, MouseEventArgs e) { if (e.X >= 0 && e.X < Convert.ToInt32(picbox.Width / 2)) { picbox.Cursor = new Cursor("arrow_left.ico"); } else if (e.X >= Convert.ToInt32(picbox.Width / 2) && e.X<=picbox.Width) { picbox.Cursor = new Cursor("arrow_right.ico"); } } else{ 还原鼠标}