<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 导航事件设置超时

        时间:2023-10-25
        • <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 导航事件设置超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:测试两个IEnumerable&lt;T&gt;具有相同频率的相同值 下一篇:HashSet 转换为 List

                  相关文章

                  <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>