鼠标中键向下移动事件
问题描述:
什么是控制事件鼠标中键向下移动?也就是说,当我按住鼠标中键并移动鼠标时,我可以订阅什么事件?
What is the control event for middle mouse down and move? That is, what is the event that I can subscribed to when I hold my middle mouse down and move the mouse?
答
看看
你也可以试试这样的
private void Form1_MouseMove(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Middle)
{
label1.Text = String.Format("{0} :: {1}", e.X, e.Y);
}
}