c#中给button按扭添加右键触发事件!

2025-02-24 22:06:34
推荐回答(1个)
回答1:

在button的MouseDown事件下添加代码
if (e.Button == MouseButtons.Right)
MessageBox.Show("string");