By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,512 Members | 3,790 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,512 IT Pros & Developers. It's quick & easy.

set refresh rate for an active browser window

P: n/a
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
Nov 27 '06 #1
Share this Question
Share on Google+
10 Replies


P: n/a

Bill Nguyen wrote:
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
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.

Nov 27 '06 #2

P: n/a
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 wrote:
>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

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.

Nov 27 '06 #3

P: n/a

Bill Nguyen wrote:
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?

Nov 28 '06 #4

P: n/a
Why not have the client's refresh themselves by adding the following HTML to
the page:

<META Http-Equiv="Refresh" CONTENT="300"/>

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
>
Bill Nguyen wrote:
>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?

Nov 28 '06 #5

P: n/a
Scott;

Great idea!
However, the webpage was saved as HTML page using Mappoint COM. How can I
add the <META...line to an existing HTML document programmatically?
Also, will it refresh if the new URL is same as the existing one?

Thanks a million

Bill

"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl...
Why not have the client's refresh themselves by adding the following HTML
to the page:

<META Http-Equiv="Refresh" CONTENT="300"/>

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googlegr oups.com...
>>
Bill Nguyen wrote:
>>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?


Nov 28 '06 #6

P: n/a
Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
ASP.NET).

I'm sure there is a way, but I'm not the person to tell you what it is.

As for the refresh, yes, it will act just as if the user had hit the refresh
button every 5 minutes (the same page will re-load). If you wanted a
re-direct to a different page, you'd write:

<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
Scott;

Great idea!
However, the webpage was saved as HTML page using Mappoint COM. How can I
add the <META...line to an existing HTML document programmatically?
Also, will it refresh if the new URL is same as the existing one?

Thanks a million

Bill

"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl...
>Why not have the client's refresh themselves by adding the following HTML
to the page:

<META Http-Equiv="Refresh" CONTENT="300"/>

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googleg roups.com...
>>>
Bill Nguyen wrote:
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?



Nov 29 '06 #7

P: n/a
Scott;
For clarity, please confirm the following:

If I want the browser to refresh the same document (being opened), the
syntax is:
<META Http-Equiv="Refresh" CONTENT="300" />

If I want to redirect to a new URL, the syntax is:
<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

I'll check on how to add this line to an existing HTML file
programmatically.

Thanks

Bill

"Scott M." <s-***@nospam.nospamwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
ASP.NET).

I'm sure there is a way, but I'm not the person to tell you what it is.

As for the refresh, yes, it will act just as if the user had hit the
refresh button every 5 minutes (the same page will re-load). If you
wanted a re-direct to a different page, you'd write:

<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
>Scott;

Great idea!
However, the webpage was saved as HTML page using Mappoint COM. How can I
add the <META...line to an existing HTML document programmatically?
Also, will it refresh if the new URL is same as the existing one?

Thanks a million

Bill

"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl...
>>Why not have the client's refresh themselves by adding the following
HTML to the page:

<META Http-Equiv="Refresh" CONTENT="300"/>

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.google groups.com...

Bill Nguyen wrote:
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?



Nov 29 '06 #8

P: n/a
Yep, you got it.
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:ef****************@TK2MSFTNGP03.phx.gbl...
Scott;
For clarity, please confirm the following:

If I want the browser to refresh the same document (being opened), the
syntax is:
<META Http-Equiv="Refresh" CONTENT="300" />

If I want to redirect to a new URL, the syntax is:
<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

I'll check on how to add this line to an existing HTML file
programmatically.

Thanks

Bill

"Scott M." <s-***@nospam.nospamwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
>Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
ASP.NET).

I'm sure there is a way, but I'm not the person to tell you what it is.

As for the refresh, yes, it will act just as if the user had hit the
refresh button every 5 minutes (the same page will re-load). If you
wanted a re-direct to a different page, you'd write:

<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
>>Scott;

Great idea!
However, the webpage was saved as HTML page using Mappoint COM. How can
I add the <META...line to an existing HTML document programmatically?
Also, will it refresh if the new URL is same as the existing one?

Thanks a million

Bill

"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl...
Why not have the client's refresh themselves by adding the following
HTML to the page:

<META Http-Equiv="Refresh" CONTENT="300"/>

<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.googl egroups.com...
>
Bill Nguyen wrote:
>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?
>




Dec 2 '06 #9

P: n/a
This works well so far.

Thanks Scott.

Bill
"Scott M." <s-***@nospam.nospamwrote in message
news:uD**************@TK2MSFTNGP02.phx.gbl...
Yep, you got it.
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:ef****************@TK2MSFTNGP03.phx.gbl...
>Scott;
For clarity, please confirm the following:

If I want the browser to refresh the same document (being opened), the
syntax is:
<META Http-Equiv="Refresh" CONTENT="300" />

If I want to redirect to a new URL, the syntax is:
<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

I'll check on how to add this line to an existing HTML file
programmatically.

Thanks

Bill

"Scott M." <s-***@nospam.nospamwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
>>Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
ASP.NET).

I'm sure there is a way, but I'm not the person to tell you what it is.

As for the refresh, yes, it will act just as if the user had hit the
refresh button every 5 minutes (the same page will re-load). If you
wanted a re-direct to a different page, you'd write:

<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
Scott;

Great idea!
However, the webpage was saved as HTML page using Mappoint COM. How can
I add the <META...line to an existing HTML document programmatically?
Also, will it refresh if the new URL is same as the existing one?

Thanks a million

Bill

"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl...
Why not have the client's refresh themselves by adding the following
HTML to the page:
>
<META Http-Equiv="Refresh" CONTENT="300"/>
>
>
>
<lo*********@gmail.comwrote in message
news:11**********************@h54g2000cwb.goog legroups.com...
>>
>Bill Nguyen wrote:
>>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?
>>
>
>




Dec 4 '06 #10

P: n/a
HTH :)
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:OT**************@TK2MSFTNGP06.phx.gbl...
This works well so far.

Thanks Scott.

Bill
"Scott M." <s-***@nospam.nospamwrote in message
news:uD**************@TK2MSFTNGP02.phx.gbl...
>Yep, you got it.
"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:ef****************@TK2MSFTNGP03.phx.gbl...
>>Scott;
For clarity, please confirm the following:

If I want the browser to refresh the same document (being opened), the
syntax is:
<META Http-Equiv="Refresh" CONTENT="300" />

If I want to redirect to a new URL, the syntax is:
<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

I'll check on how to add this line to an existing HTML file
programmatically.

Thanks

Bill

"Scott M." <s-***@nospam.nospamwrote in message
news:eb**************@TK2MSFTNGP02.phx.gbl...
Hmmm, I'm not familiar with MapPoint COM (I assumed your question was
ASP.NET).

I'm sure there is a way, but I'm not the person to tell you what it is.

As for the refresh, yes, it will act just as if the user had hit the
refresh button every 5 minutes (the same page will re-load). If you
wanted a re-direct to a different page, you'd write:

<META Http-Equiv="Refresh" CONTENT="300;URL=someNewURL" />

"Bill Nguyen" <bi*****************@jaco.comwrote in message
news:e0**************@TK2MSFTNGP06.phx.gbl...
Scott;
>
Great idea!
However, the webpage was saved as HTML page using Mappoint COM. How
can I add the <META...line to an existing HTML document
programmatically?
Also, will it refresh if the new URL is same as the existing one?
>
Thanks a million
>
Bill
>
"Scott M." <s-***@nospam.nospamwrote in message
news:el**************@TK2MSFTNGP06.phx.gbl.. .
>Why not have the client's refresh themselves by adding the following
>HTML to the page:
>>
><META Http-Equiv="Refresh" CONTENT="300"/>
>>
>>
>>
><lo*********@gmail.comwrote in message
>news:11**********************@h54g2000cwb.goo glegroups.com...
>>>
>>Bill Nguyen wrote:
>>>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?
>>>
>>
>>
>
>




Dec 5 '06 #11

This discussion thread is closed

Replies have been disabled for this discussion.