摘要:
转自:http://www.cnblogs.com/netlyf/archive/2011/04/04/2005155.html在Visual Studio窗口里增加一个ListBox和ContextMenuTrip,把ListBox的ContextMenuTrip设置成“(无)”,也就是不要和ContextMenuTrip控件关联,然后对ListBox的MouseUp事件编程。private void listBox1_MouseUp(object sender, MouseEventArgs e){ if (e.Button == MouseButtons.Right) ... 阅读全文