网站建议:179001057@qq.com

ListView右击选中项弹出菜单

技术2022-05-12  1

//右键选中项弹出菜单 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; } }


最新回复(0)