日期:2014-05-18 浏览次数:20705 次
public override bool PreProcessMessage(ref Message msg) { if(msg.Msg==WM_LBUTTONDOWN) { //MessageBox.Show(msg.HWnd.ToString()); //当然这里还需要msg.HWnd == this.button1.Handle; return false; } return base.PreProcessMessage(ref msg); }
------解决方案--------------------
button.enable=false;
------解决方案--------------------
http://blog.csdn.net/fan158/article/details/6178392#comments