在Mouse事件中(比如MouseDown中)判断Control.ModifierKeys 是不是按下了ctrl. public void myMouseDown(object sender, MouseEventArgs ex)
{
if (ex.Button == MouseButtons.Left)
{
if (Control.ModifierKeys == Keys.Control)
{
//这里就算是了。
}
}
}
{
if (ex.Button == MouseButtons.Left)
{
if (Control.ModifierKeys == Keys.Control)
{
//这里就算是了。
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货