鼠标中键向下移动事件 [英] The event for middle mouse down and move

查看:29
本文介绍了鼠标中键向下移动事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是控制事件鼠标中键向下移动?也就是说,当我按住鼠标中键并移动鼠标时,我可以订阅什么事件?

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);
    }
}

这篇关于鼠标中键向下移动事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆