//右键选中项弹出菜单 private void listViewtask1_MouseClick(object sender, MouseEventArgs e) { ListView _ListView = (ListView)sender; ListViewItem _Item = _ListView.GetItemAt(e.X, e.Y); if (_Item != null) { this.contextMenuStrip2.Show(_ListView, e.X, e.Y); } else { return; } }