请问C#如何实现屏蔽鼠标右键

解决方案 »

  1.   


         protected override void WndProc(ref Message m)
            {
                if (m.Msg == 0x84)   // 在这一行判断自己要处理的消息
                {            }
                else
                {
                    base.WndProc(ref m);
                }
            }
      

  2.   

    如果你想在所有程序中都不准用右键,只能用鼠标勾子
    如果你想在你的窗体中不准用右键
    在Mousedown事件中判断
    e.Button != MouseButtons.Right
    如果是右键,就直接返回就行了
      

  3.   

    我又开了个帖子 请你到这个帖子里回复我 好吗?
    http://topic.csdn.net/u/20110413/10/0481529c-3b04-4d6d-afa6-2ddd2335e3a7.html