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

      2. <small id='jEsyp'></small><noframes id='jEsyp'>

      3. <tfoot id='jEsyp'></tfoot>

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

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

        在特定情况下自动滚动列表框

        Autoscrolling a Listbox under a certain situation(在特定情况下自动滚动列表框)

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

        • <bdo id='qhU93'></bdo><ul id='qhU93'></ul>

              <legend id='qhU93'><style id='qhU93'><dir id='qhU93'><q id='qhU93'></q></dir></style></legend>
              <tfoot id='qhU93'></tfoot>

                    <tbody id='qhU93'></tbody>

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

                  本文介绍了在特定情况下自动滚动列表框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在添加新项目后自动滚动列表框,但前提是滚动条在添加项目之前位于底部?

                  How to autoscroll a Listbox after adding a new item, but only if the scrollbar is at the bottom before the item is added?

                  推荐答案

                  你可以试试:

                  listBox1.SelectedIndex = listBox1.Items.Count - 1;    
                  listBox1.SelectedIndex = -1;
                  

                  这篇关于在特定情况下自动滚动列表框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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)
                  Cannot remove items from ListBox(无法从列表框中删除项目)
                  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 列表框上的取消选择)
                  <i id='nRT5Q'><tr id='nRT5Q'><dt id='nRT5Q'><q id='nRT5Q'><span id='nRT5Q'><b id='nRT5Q'><form id='nRT5Q'><ins id='nRT5Q'></ins><ul id='nRT5Q'></ul><sub id='nRT5Q'></sub></form><legend id='nRT5Q'></legend><bdo id='nRT5Q'><pre id='nRT5Q'><center id='nRT5Q'></center></pre></bdo></b><th id='nRT5Q'></th></span></q></dt></tr></i><div id='nRT5Q'><tfoot id='nRT5Q'></tfoot><dl id='nRT5Q'><fieldset id='nRT5Q'></fieldset></dl></div>
                  <tfoot id='nRT5Q'></tfoot>

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

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

                          <tbody id='nRT5Q'></tbody>

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