设置活动浏览器窗口的刷新率 [英] set refresh rate for an active browser window
问题描述
我希望能够获得一个活动的浏览器窗口,每5分钟刷新一次URL
(重新加载)。是否可以在VB.NET中使用?
谢谢
比尔
I would like to be able to get an active browser window to refresh the URL
(reload) every 5 minutes. Is it possible in VB.NET?
Thanks
Bill
推荐答案
Bill Nguyen写道:
Bill Nguyen wrote:
我希望能够获得一个活动的浏览器窗口来刷新URL <每5分钟
(重新加载)。是否可以在VB.NET中使用?
谢谢
比尔
I would like to be able to get an active browser window to refresh the URL
(reload) every 5 minutes. Is it possible in VB.NET?
Thanks
Bill
大概。最简单的方法是将一个计时器附加到表单,然后当计时器滴答达到5分钟时刷新,重置计时器。
另一种方式可能是一个单独的线程刷新,然后
让线程睡眠5分钟,然后当它醒来时,它会刷新,然后再回到睡眠状态。 />
Probably. Simplest way would be to attach a timer to the form and then
when the timer tick hits 5 minutes, refresh, reset the tick counter.
another way might be to have a seperate thread to refresh, adn then
make the thread sleep for 5 minutes, then when it wakes up, it
refreshes, and then goes back to sleep.
我在单个表单上有多个浏览器(在运行时创建)。我需要
能够检测所有这些活动的浏览器,以便我可以刷新它们。
任何想法如何实现这一点?
再次感谢
Bill
< lo ********* @ gmail.comwrote in message
新闻:11 ********************** @ j44g2000cwa.googlegr oups.com ...
I ahve multiple browsers on a single form (created during runtime). I need
to be able to detect all these active browsers so that I can refresh them.
Any idea how to accomplish this?
Thanks again
Bill
<lo*********@gmail.comwrote in message
news:11**********************@j44g2000cwa.googlegr oups.com...
>
Bill Nguyen写道:
>
Bill Nguyen wrote:
>我希望能够获得一个活跃的浏览器窗口每5分钟刷新一次
URL
(重新加载)。在VB.NET中有可能吗?
谢谢
比尔
>I would like to be able to get an active browser window to refresh the
URL
(reload) every 5 minutes. Is it possible in VB.NET?
Thanks
Bill
可能。最简单的方法是将一个计时器附加到表单,然后当计时器滴答达到5分钟时刷新,重置计时器。
另一种方式可能是一个单独的线程刷新,然后
让线程睡眠5分钟,然后当它醒来时,它会刷新,然后再回到睡眠状态。 />
Probably. Simplest way would be to attach a timer to the form and then
when the timer tick hits 5 minutes, refresh, reset the tick counter.
another way might be to have a seperate thread to refresh, adn then
make the thread sleep for 5 minutes, then when it wakes up, it
refreshes, and then goes back to sleep.
Bill Nguyen写道:
Bill Nguyen wrote:
I单个表单上的多个浏览器(在运行时创建)。我需要
能够检测所有这些活动的浏览器,以便我可以刷新它们。
任何想法如何实现这一点?
再次感谢
Bill
I ahve multiple browsers on a single form (created during runtime). I need
to be able to detect all these active browsers so that I can refresh them.
Any idea how to accomplish this?
Thanks again
Bill
是否可以有多个定时器/定时线程?每个浏览器都有一个
一个?
Would it be possible to have multiple timers/timed threads? and have
one for each browser?
这篇关于设置活动浏览器窗口的刷新率的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!