关于回车与左键的问题
描述:一个按钮的两个事件 private void button1_Click(object sender, System.EventArgs e) { this.BackColor=Color.Red; }
private void button1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { MessageBox.Show("你好!!"); } 问题:为什么按左键只触发button1_MouseDown,而回车只出发button1_Click 注AcceptButton设为了button1