|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
set refresh rate for an active browser windowI 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 wrote:
> I would like to be able to get an active browser window to refresh the URL Probably. Simplest way would be to attach a timer to the form and then> (reload) every 5 minutes. Is it possible in VB.NET? > > Thanks > > Bill 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. 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 <lord.zol***@gmail.com> wrote in message Show quoteHide quote news:1164663617.823419.141130@j44g2000cwa.googlegroups.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. > Bill Nguyen wrote:
> I ahve multiple browsers on a single form (created during runtime). I need Would it be possible to have multiple timers/timed threads? and have> to be able to detect all these active browsers so that I can refresh them. > Any idea how to accomplish this? > > Thanks again > > Bill > one for each browser? Why not have the client's refresh themselves by adding the following HTML to
the page: <META Http-Equiv="Refresh" CONTENT="300"/> <lord.zol***@gmail.com> wrote in message Show quoteHide quote news:1164750163.372139.316310@h54g2000cwb.googlegroups.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? > 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 Show quoteHide quote "Scott M." <s-mar@nospam.nospam> wrote in message news:elRlulzEHHA.3768@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"/> > > > > <lord.zol***@gmail.com> wrote in message > news:1164750163.372139.316310@h54g2000cwb.googlegroups.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? >> > > 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" /> Show quoteHide quote "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message news:e0Gxys0EHHA.3660@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-mar@nospam.nospam> wrote in message > news:elRlulzEHHA.3768@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"/> >> >> >> >> <lord.zol***@gmail.com> wrote in message >> news:1164750163.372139.316310@h54g2000cwb.googlegroups.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? >>> >> >> > > 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 Show quoteHide quote "Scott M." <s-mar@nospam.nospam> wrote in message news:ebi5HJ8EHHA.3768@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" <billn_nospam_please@jaco.com> wrote in message > news:e0Gxys0EHHA.3660@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-mar@nospam.nospam> wrote in message >> news:elRlulzEHHA.3768@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"/> >>> >>> >>> >>> <lord.zol***@gmail.com> wrote in message >>> news:1164750163.372139.316310@h54g2000cwb.googlegroups.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? >>>> >>> >>> >> >> > > Yep, you got it.
Show quoteHide quote "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message news:ef%23ZS59EHHA.4092@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-mar@nospam.nospam> wrote in message > news:ebi5HJ8EHHA.3768@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" <billn_nospam_please@jaco.com> wrote in message >> news:e0Gxys0EHHA.3660@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-mar@nospam.nospam> wrote in message >>> news:elRlulzEHHA.3768@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"/> >>>> >>>> >>>> >>>> <lord.zol***@gmail.com> wrote in message >>>> news:1164750163.372139.316310@h54g2000cwb.googlegroups.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? >>>>> >>>> >>>> >>> >>> >> >> > > This works well so far.
Thanks Scott. Bill Show quoteHide quote "Scott M." <s-mar@nospam.nospam> wrote in message news:uDpHIfjFHHA.3668@TK2MSFTNGP02.phx.gbl... > Yep, you got it. > > > "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message > news:ef%23ZS59EHHA.4092@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-mar@nospam.nospam> wrote in message >> news:ebi5HJ8EHHA.3768@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" <billn_nospam_please@jaco.com> wrote in message >>> news:e0Gxys0EHHA.3660@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-mar@nospam.nospam> wrote in message >>>> news:elRlulzEHHA.3768@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"/> >>>>> >>>>> >>>>> >>>>> <lord.zol***@gmail.com> wrote in message >>>>> news:1164750163.372139.316310@h54g2000cwb.googlegroups.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? >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > HTH :)
Show quoteHide quote "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message news:OT7lrf8FHHA.3616@TK2MSFTNGP06.phx.gbl... > This works well so far. > > Thanks Scott. > > Bill > "Scott M." <s-mar@nospam.nospam> wrote in message > news:uDpHIfjFHHA.3668@TK2MSFTNGP02.phx.gbl... >> Yep, you got it. >> >> >> "Bill Nguyen" <billn_nospam_please@jaco.com> wrote in message >> news:ef%23ZS59EHHA.4092@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-mar@nospam.nospam> wrote in message >>> news:ebi5HJ8EHHA.3768@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" <billn_nospam_please@jaco.com> wrote in message >>>> news:e0Gxys0EHHA.3660@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-mar@nospam.nospam> wrote in message >>>>> news:elRlulzEHHA.3768@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"/> >>>>>> >>>>>> >>>>>> >>>>>> <lord.zol***@gmail.com> wrote in message >>>>>> news:1164750163.372139.316310@h54g2000cwb.googlegroups.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? >>>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > >
word automation vb.net
Arranging window screens on multi-monitor Desktop Re: Help needed in using FSO's, TextStreams, etc. --- Code Review and Advice requested listbox's SelectedIndexChanged keep fire Array Question, Out of Bounds better way to program than this? Display Outlook Recipient Window from vb.net Errors when running from LAN server. sqlDataReader does not return correct sorted data detect timezone & daylight saving time settings programmatically |
|||||||||||||||||||||||