<tfoot id='AXEXu'></tfoot>

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

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

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

        如何为 webBrowser 导航事件设置超时

        How to set timeout for webBrowser navigate event(如何为 webBrowser 导航事件设置超时)
        • <i id='NRujd'><tr id='NRujd'><dt id='NRujd'><q id='NRujd'><span id='NRujd'><b id='NRujd'><form id='NRujd'><ins id='NRujd'></ins><ul id='NRujd'></ul><sub id='NRujd'></sub></form><legend id='NRujd'></legend><bdo id='NRujd'><pre id='NRujd'><center id='NRujd'></center></pre></bdo></b><th id='NRujd'></th></span></q></dt></tr></i><div id='NRujd'><tfoot id='NRujd'></tfoot><dl id='NRujd'><fieldset id='NRujd'></fieldset></dl></div>

        • <legend id='NRujd'><style id='NRujd'><dir id='NRujd'><q id='NRujd'></q></dir></style></legend>
            <bdo id='NRujd'></bdo><ul id='NRujd'></ul>

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

              1. <tfoot id='NRujd'></tfoot>

                    <tbody id='NRujd'></tbody>
                  本文介绍了如何为 webBrowser 导航事件设置超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何设置 webBrowser 导航 (url) 事件的超时时间

                  how can i set timeout for webBrowser navigate (url) event

                  c#网络框架4.0

                  推荐答案

                  当然是使用 Timer.例如:

                  By using a Timer of course. For example:

                      public void NavigateTo(Uri url) {
                          webBrowser1.Navigate(url);
                          timer1.Enabled = true;
                      }
                  
                      private void timer1_Tick(object sender, EventArgs e) {
                          timer1.Enabled = false;
                          MessageBox.Show("Timeout on navigation");
                      }
                  
                      private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) {
                          if (e.Url == webBrowser1.Url && timer1.Enabled) {
                              timer1.Enabled = false;
                              // etc..
                          }
                      }
                  

                  这篇关于如何为 webBrowser 导航事件设置超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Adding and removing users from Active Directory groups in .NET(在 .NET 中的 Active Directory 组中添加和删除用户)
                  set equality in linq(在 linq 中设置相等)
                  HashSet conversion to List(HashSet 转换为 List)
                  Test whether two IEnumerablelt;Tgt; have the same values with the same frequencies(测试两个IEnumerablelt;Tgt;具有相同频率的相同值)
                  How do you determine if two HashSets are equal (by value, not by reference)?(您如何确定两个 HashSet 是否相等(按值,而不是按引用)?)
                  Shorthand Accessors and Mutators(速记访问器和突变器)

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

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

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

                        • <bdo id='grBf0'></bdo><ul id='grBf0'></ul>
                            <tbody id='grBf0'></tbody>