<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. 无法从列表框中删除项目

        Cannot remove items from ListBox(无法从列表框中删除项目)
        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]);
                  }
                  

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

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Populate ListBox with a IEnumrable on another thread (winforms)(在另一个线程(winforms)上使用 IEnumrable 填充 ListBox)
                  listbox selected item give me quot; System.Data.DataRowViewquot; , C# winforms(列表框选择的项目给我quot;System.Data.DataRowView, C# Winforms)
                  Preventing ListBox scrolling to top when updated(更新时防止列表框滚动到顶部)
                  Drag and drop from list to canvas on windows phone with MVVM(使用 MVVM 在 Windows 手机上从列表拖放到画布)
                  Deselection on a WPF listbox with extended selection mode(具有扩展选择模式的 WPF 列表框上的取消选择)
                  How do I get at the listbox item#39;s quot;keyquot; in c# winforms app?(如何获取列表框项目的“键?在 c# winforms 应用程序中?)
                  • <small id='4QCvY'></small><noframes id='4QCvY'>

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

                      <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>
                        • <legend id='4QCvY'><style id='4QCvY'><dir id='4QCvY'><q id='4QCvY'></q></dir></style></legend>

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