Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法根据它的名称而不是索引值从列表框中删除项目?我想删除名为“鼠标”的项目(索引 # 一直在变化)。
listBox.Items.Delete(listbox.Items.IndexOf('Mouse'));