110,577
社区成员
发帖
与我相关
我的任务
分享
[DllImpart("User32.dll")]
static extern short GetKeyState(int nVirtKey);
void Form1_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Left && // 鼠标左键
(Control.ModifierKeys & Keys.Alt) == Keys.Alt && // Alt按下
(Control.ModifierKeys & Keys.Control) == Keys.Control) // Control按下
{
MessageBox.Show("Action...");
}
}