<legend id='aA9DJ'><style id='aA9DJ'><dir id='aA9DJ'><q id='aA9DJ'></q></dir></style></legend>

<small id='aA9DJ'></small><noframes id='aA9DJ'>

  • <i id='aA9DJ'><tr id='aA9DJ'><dt id='aA9DJ'><q id='aA9DJ'><span id='aA9DJ'><b id='aA9DJ'><form id='aA9DJ'><ins id='aA9DJ'></ins><ul id='aA9DJ'></ul><sub id='aA9DJ'></sub></form><legend id='aA9DJ'></legend><bdo id='aA9DJ'><pre id='aA9DJ'><center id='aA9DJ'></center></pre></bdo></b><th id='aA9DJ'></th></span></q></dt></tr></i><div id='aA9DJ'><tfoot id='aA9DJ'></tfoot><dl id='aA9DJ'><fieldset id='aA9DJ'></fieldset></dl></div>
  • <tfoot id='aA9DJ'></tfoot>

        <bdo id='aA9DJ'></bdo><ul id='aA9DJ'></ul>

      1. 无法从列表框中删除项目

        时间:2023-10-08
        1. <legend id='AtEeP'><style id='AtEeP'><dir id='AtEeP'><q id='AtEeP'></q></dir></style></legend>
            <bdo id='AtEeP'></bdo><ul id='AtEeP'></ul>

                  <small id='AtEeP'></small><noframes id='AtEeP'>

                    <tbody id='AtEeP'></tbody>
                1. <tfoot id='AtEeP'></tfoot>

                  <i id='AtEeP'><tr id='AtEeP'><dt id='AtEeP'><q id='AtEeP'><span id='AtEeP'><b id='AtEeP'><form id='AtEeP'><ins id='AtEeP'></ins><ul id='AtEeP'></ul><sub id='AtEeP'></sub></form><legend id='AtEeP'></legend><bdo id='AtEeP'><pre id='AtEeP'><center id='AtEeP'></center></pre></bdo></b><th id='AtEeP'></th></span></q></dt></tr></i><div id='AtEeP'><tfoot id='AtEeP'></tfoot><dl id='AtEeP'><fieldset id='AtEeP'></fieldset></dl></div>

                2. 本文介绍了无法从列表框中删除项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  尝试运行此方法时出现错误:

                  When trying to run this method I get an error:

                  此枚举器绑定的列表已被修改.枚举器只能在列表不变的情况下使用.

                  List that this enumerator is bound to has been modified. An enumerator can only be used if the list does not change.

                  foreach (var item in lstPhotos.SelectedItems)
                  {
                      lstPhotos.Items.Remove(item);
                  }
                  

                  如何删除选定的项目?

                  推荐答案

                  while(lstPhotos.SelectedItems.Count != 0)
                  {
                      lstPhotos.Items.Remove(lstPhotos.SelectedItems[0]);
                  }
                  

                  这篇关于无法从列表框中删除项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:更新时防止列表框滚动到顶部 下一篇:列表框选择的项目给我&quot;System.Data.DataRowView", C# Winfor

                  相关文章

                3. <small id='4QCvY'></small><noframes id='4QCvY'>

                  • <bdo id='4QCvY'></bdo><ul id='4QCvY'></ul>

                  <i id='4QCvY'><tr id='4QCvY'><dt id='4QCvY'><q id='4QCvY'><span id='4QCvY'><b id='4QCvY'><form id='4QCvY'><ins id='4QCvY'></ins><ul id='4QCvY'></ul><sub id='4QCvY'></sub></form><legend id='4QCvY'></legend><bdo id='4QCvY'><pre id='4QCvY'><center id='4QCvY'></center></pre></bdo></b><th id='4QCvY'></th></span></q></dt></tr></i><div id='4QCvY'><tfoot id='4QCvY'></tfoot><dl id='4QCvY'><fieldset id='4QCvY'></fieldset></dl></div>
                  1. <legend id='4QCvY'><style id='4QCvY'><dir id='4QCvY'><q id='4QCvY'></q></dir></style></legend>

                      <tfoot id='4QCvY'></tfoot>