473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

AxWebBrowser - problem with caching website.

I have a timer which triggers AxWebBrowser1 every 5 minutes to visit
one of my websites.

What I find out later in my websites logs, was, that it really visited
my website only for the first time.

Second time it went to the site and every other time, it was reloaded
probably from the cache, hdd or from somewhere... I am just guessing.
This is something I couldn't resolve and its killing me as I am
spending too much time with this little thing.

I tried to use refresh and update as you see... but these wouldn't
work.
I even tried to go to blank page first and then to my website...still
caching ...

If I restart the whole application it again works for a first time it
visits the page... drives me mad :)
This is my code:

Private Sub Timer1_Tick(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Timer1.Tick

Label1.Text = DateTime.Now
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser1.Refresh()
AxWebBrowser1.Update()

End Sub

Every help much appreciated.

Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #1
29 4362
Cor
Hi Vjay,

I am not sure, I thought I had the same problems, but you can try the

axwebbrowser.refresh2(3)

method, that should do it, but I am in doubt.

Tell me if it works, will you?

Cor
What I find out later in my websites logs, was, that it really visited
my website only for the first time.

Second time it went to the site and every other time, it was reloaded
probably from the cache, hdd or from somewhere... I am just guessing.
This is something I couldn't resolve and its killing me as I am
spending too much time with this little thing.

I tried to use refresh and update as you see... but these wouldn't
work.
I even tried to go to blank page first and then to my website...still
caching ...

If I restart the whole application it again works for a first time it
visits the page... drives me mad :)

Nov 20 '05 #2
I don't know how to do what you want to do.
I just wonder if Microsoft have designed their products
to avoid programmers being able to do that easily because
it might allow an ill intentioned programmer to overload
any server he wanted to, just put a very short timer and
set up a few clients to load pages from the server every
few milliseconds. I am not suggesting you have any
intention of wanting to do that, just that it might be
why it is difficult to find a technical solution to do it.
In fact I don't have an answer to your question, I am
just curious to know if it is possible to do it.
Best Regards, Tony
-----Original Message-----
I have a timer which triggers AxWebBrowser1 every 5 minutes to visitone of my websites.

What I find out later in my websites logs, was, that it really visitedmy website only for the first time.

Second time it went to the site and every other time, it was reloadedprobably from the cache, hdd or from somewhere... I am just guessing.

This is something I couldn't resolve and its killing me as I amspending too much time with this little thing.

I tried to use refresh and update as you see... but these wouldn'twork.
I even tried to go to blank page first and then to my website...stillcaching ...

If I restart the whole application it again works for a first time itvisits the page... drives me mad :)
This is my code:

Private Sub Timer1_Tick(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Timer1.Tick

Label1.Text = DateTime.Now
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser1.Refresh()
AxWebBrowser1.Update()

End Sub

Every help much appreciated.

Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored- Secure Usenet News==----http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---.

Nov 20 '05 #3
Daer Cor,
refresh2 doesn't work either?

Tony:
you might be right, but it wouldn't let me update them even in 5
minutes intervals. Sux badly.

Any other ideas?

Thanks for trying to help.

vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #4
you might try changing a setting in Internet Explorer - Tools/Internet
Options - then under Settings button - Check for newer versions of stored
pages - select "Every visit to the page". I believe this is stored in
registry @ Current User\Software\Microsoft\Windows\CurrentVersion\Int ernet
Settings\SyncMode5 so that you can check value (and change) in program if
needed. (key doesn't look it exists until you first change the value in
Internet Explorer)
"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f**********@127.0.0.1...
I have a timer which triggers AxWebBrowser1 every 5 minutes to visit
one of my websites.

What I find out later in my websites logs, was, that it really visited
my website only for the first time.

Second time it went to the site and every other time, it was reloaded
probably from the cache, hdd or from somewhere... I am just guessing.
This is something I couldn't resolve and its killing me as I am
spending too much time with this little thing.

I tried to use refresh and update as you see... but these wouldn't
work.
I even tried to go to blank page first and then to my website...still
caching ...

If I restart the whole application it again works for a first time it
visits the page... drives me mad :)
This is my code:

Private Sub Timer1_Tick(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Timer1.Tick

Label1.Text = DateTime.Now
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser1.Refresh()
AxWebBrowser1.Update()

End Sub

Every help much appreciated.

Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #5
These are exactly the same problems as I have experienced with vb.net
while trying to use smtp authorization...
simply wouldn't work

I hope someone will help you.

Martin

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #6
Dan,

I tried what you suggested but Current
User\Software\Microsoft\Windows\CurrentVersion\Int ernet
Settings\SyncMode5 doesn't exist in win xp home registries, or I am
blind but really can't find it.
I was able to get only to Current
User\Software\Microsoft\Windows\CurrentVersion\Int ernet
Settings\ but 'SyncMode5' is not there.

Then, I have changed settings in internet explorer as per what you
said, and it finally fixed the problem. Now I would need to figure
out how to do this programmatically, is there any other way to do
this? or any other path in registries?

Thanks for all you help.
Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #7

double-check to see if the registry key is there now - I just checked a Win
XP home machine - it didn't exist initially but once I changed the setting
in IE - it appears in the registry.

I am running this on an internal system that I have control over- if I
needed to distribute this to a client I might be worry about counting on
that registry key always existing (and working) with every upgrade to
windows - maybe someone else can chime in on using this...

anyway this is what I use to check in code - you can change GetValue to
SetValue to actually change the key.

Imports Microsoft.Win32

Dim regKey As RegistryKey
Dim dResult As Int16
regKey =
Registry.CurrentUser.OpenSubKey("Software\Microsof t\Windows\CurrentVersion\I
nternet Settings", True)
dResult = Convert.ToInt16(regKey.GetValue("SyncMode5", 0))
If dResult <> 3 Then
MessageBox.Show("Browser not configured properly")
End If
regKey.Close()

"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f**********@127.0.0.1...
Dan,

I tried what you suggested but Current
User\Software\Microsoft\Windows\CurrentVersion\Int ernet
Settings\SyncMode5 doesn't exist in win xp home registries, or I am
blind but really can't find it.
I was able to get only to Current
User\Software\Microsoft\Windows\CurrentVersion\Int ernet
Settings\ but 'SyncMode5' is not there.

Then, I have changed settings in internet explorer as per what you
said, and it finally fixed the problem. Now I would need to figure
out how to do this programmatically, is there any other way to do
this? or any other path in registries?

Thanks for all you help.
Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #8
Thanks Dan.
This is really good to know.
Thanks for your time.

I hope someone will find out how to refresh the axwebbrowser properly,
so I don't have to go through these troubles with setting registries
and checking if they exist or not... that is not the best...

there must be some programmatic way of doing it using axwebbrowser
properties...

hm..

Hope someone can find this challanging...

vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #9
Cor
Hi Vjay,
there must be some programmatic way of doing it using axwebbrowser
properties... Hope someone can find this challanging...


I did already, but the webbrowser is just using IE.
I thought that in the next version of VB.net there will be a seperated
webbrowser.

But I was hoping I was wrong and you did find the way

I did not do what Dan was advising, for two reasons

Because of that this Microsoft can change it everyday if they think it is a
security problem, without have to think on other developers.
Because the user does not know what you are doing in his settings and that
can give problems (When it is an "in house" program that is a less problem I
asume)

:-))

Cor

Nov 20 '05 #10
Cor,
this application will be eventually used just for my own purposes as
it looks right now.
So I assume this is the end to this debate?
No one else has anything else to add?

vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #11
Vjay,

I assume you have tried:
WebBrowser1.Navigate2 http://www.yahoo.com navNoReadFromCache

not sure on the syntax as I dont have a book by me.

"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f********@127.0.0.1...
Cor,
this application will be eventually used just for my own purposes as
it looks right now.
So I assume this is the end to this debate?
No one else has anything else to add?

vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #12
A Refresh2 method accepts an argument that determines the refresh level.
This refresh level argument can have one of the following values:

REFRESH_NORMAL 0
REFRESH_IFEXPIRED 1
REFRESH_COMPLETELY 3

Thus

Dim REFRESH_COMPLETELY As Object = 3
axWebBrowser1.Refresh2( REFRESH_COMPLETELY)

Let me know if this helped.

"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f**********@127.0.0.1...
I have a timer which triggers AxWebBrowser1 every 5 minutes to visit
one of my websites.

What I find out later in my websites logs, was, that it really visited
my website only for the first time.

Second time it went to the site and every other time, it was reloaded
probably from the cache, hdd or from somewhere... I am just guessing.
This is something I couldn't resolve and its killing me as I am
spending too much time with this little thing.

I tried to use refresh and update as you see... but these wouldn't
work.
I even tried to go to blank page first and then to my website...still
caching ...

If I restart the whole application it again works for a first time it
visits the page... drives me mad :)
This is my code:

Private Sub Timer1_Tick(ByVal sender As Object,
ByVal e As System.EventArgs) Handles Timer1.Tick

Label1.Text = DateTime.Now
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser1.Refresh()
AxWebBrowser1.Update()

End Sub

Every help much appreciated.

Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #13
Ok I wrote it like you suggested
Dim REFRESH_COMPLETELY As Object = 3
AxWebBrowser1.Refresh2(REFRESH_COMPLETELY)
It gave me unspecified error it simply crashed.

Then I tried to load the page first and than refresh it, like this:

[code:1:51d5a1a418]
AxWebBrowser1.Navigate(TextBox1.Text)
Dim REFRESH_COMPLETELY As Object = 3
AxWebBrowser1.Refresh2(REFRESH_COMPLETELY)
[/code:1:51d5a1a418]
But it still crashed on me. Refresh2 is probably not the best idea...
Then I tried:

[code:1:51d5a1a418]
AxWebBrowser1.Focus()
SendKeys.Send("F5")
[/code:1:51d5a1a418]

Nothing works.
Drives me mad :(

Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #14
Try Navigate2

sorry it didnt work out for you this time.

"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f**********@127.0.0.1...
Ok I wrote it like you suggested
Dim REFRESH_COMPLETELY As Object = 3
AxWebBrowser1.Refresh2(REFRESH_COMPLETELY)
It gave me unspecified error it simply crashed.

Then I tried to load the page first and than refresh it, like this:

[code:1:51d5a1a418]
AxWebBrowser1.Navigate(TextBox1.Text)
Dim REFRESH_COMPLETELY As Object = 3
AxWebBrowser1.Refresh2(REFRESH_COMPLETELY)
[/code:1:51d5a1a418]
But it still crashed on me. Refresh2 is probably not the best idea...
Then I tried:

[code:1:51d5a1a418]
AxWebBrowser1.Focus()
SendKeys.Send("F5")
[/code:1:51d5a1a418]

Nothing works.
Drives me mad :(

Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #15
this worked perfectly for me.....

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
TextBox1.Text = "http://www.yahoo.com"

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
AxWebBrowser1.Navigate(TextBox1.Text)

End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
Dim REFRESH_COMPLETELY As Object = 3
AxWebBrowser1.Refresh2(REFRESH_COMPLETELY)
End Sub
If it does not work now I will do with a timer tomorrow.

"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f**********@127.0.0.1...
Ok I wrote it like you suggested
Dim REFRESH_COMPLETELY As Object = 3
AxWebBrowser1.Refresh2(REFRESH_COMPLETELY)
It gave me unspecified error it simply crashed.

Then I tried to load the page first and than refresh it, like this:

[code:1:51d5a1a418]
AxWebBrowser1.Navigate(TextBox1.Text)
Dim REFRESH_COMPLETELY As Object = 3
AxWebBrowser1.Refresh2(REFRESH_COMPLETELY)
[/code:1:51d5a1a418]
But it still crashed on me. Refresh2 is probably not the best idea...
Then I tried:

[code:1:51d5a1a418]
AxWebBrowser1.Focus()
SendKeys.Send("F5")
[/code:1:51d5a1a418]

Nothing works.
Drives me mad :(

Vjay

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #16
You see, if you're loading yahoo then it's maybe too small for you to
see if it really refreshed and loaded again or if it just loads from
memory.
But I am loading quite a big processing part (takes like minute to
load if refreshed), for me it apears in less than second if it's
coming from cache.

Maybe you should load some bigger text. Try some online text book,
like this dictionary:
http://www.gutenberg.net/etext02/8mede10.txt
it has one megabyte so you'll see the progress.

Anyways, the way you did it, doesn't work in timer for sure.

Let me know if you can come back with something working.
There must be a way, and we should be able to figure this out.

Thanks a lot.

Vjay
Backup of this forum here:
http://www.dotnetboards.com/viewtopic.php?t=5478

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #17
stand by V may take a minute or so.......

"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f**********@127.0.0.1...
You see, if you're loading yahoo then it's maybe too small for you to
see if it really refreshed and loaded again or if it just loads from
memory.
But I am loading quite a big processing part (takes like minute to
load if refreshed), for me it apears in less than second if it's
coming from cache.

Maybe you should load some bigger text. Try some online text book,
like this dictionary:
http://www.gutenberg.net/etext02/8mede10.txt
it has one megabyte so you'll see the progress.

Anyways, the way you did it, doesn't work in timer for sure.

Let me know if you can come back with something working.
There must be a way, and we should be able to figure this out.

Thanks a lot.

Vjay
Backup of this forum here:
http://www.dotnetboards.com/viewtopic.php?t=5478

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #18
V,

It worked perfectly I am telling you..........

Send an email to kj*@nospamherepleasecharter.net

and I will send the project.(remove no spam here)

Something is not right here........

"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f**********@127.0.0.1...
You see, if you're loading yahoo then it's maybe too small for you to
see if it really refreshed and loaded again or if it just loads from
memory.
But I am loading quite a big processing part (takes like minute to
load if refreshed), for me it apears in less than second if it's
coming from cache.

Maybe you should load some bigger text. Try some online text book,
like this dictionary:
http://www.gutenberg.net/etext02/8mede10.txt
it has one megabyte so you'll see the progress.

Anyways, the way you did it, doesn't work in timer for sure.

Let me know if you can come back with something working.
There must be a way, and we should be able to figure this out.

Thanks a lot.

Vjay
Backup of this forum here:
http://www.dotnetboards.com/viewtopic.php?t=5478

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #19
When I wrote a refresh button:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button3.Click
AxWebBrowser2.Navigate(TextBox2.Text)
AxWebBrowser2.Focus()
SendKeys.Send("{F5}")
End Sub
it worked fine for me too...
but the same code won't work when I try to run it inside of my timer1
cycle... timer goes on every 10 minutes now... it works only first
round...

so this is really interesting... is it dissabled to run in timer by
microsoft?

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #20
...hehe maybe we should write the script now which clicks on my
refresh button every 10 minutes... and problem would be solved... :)

vjay

Backup of this forum here:
http://www.dotnetboards.com/viewtopic.php?t=5478

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #21
Can I see the how you coded hte timer event?

"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f**********@127.0.0.1...
When I wrote a refresh button:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button3.Click
AxWebBrowser2.Navigate(TextBox2.Text)
AxWebBrowser2.Focus()
SendKeys.Send("{F5}")
End Sub
it worked fine for me too...
but the same code won't work when I try to run it inside of my timer1
cycle... timer goes on every 10 minutes now... it works only first
round...

so this is really interesting... is it dissabled to run in timer by
microsoft?

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #22
timer is set to tick every ten minutes:

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
Dim count As Integer

Label1.Text = DateTime.Now
Label2.Text = DateTime.Now
count = count + 1

If count = 1 Then
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser2.Navigate(TextBox2.Text)
Else
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser1.Focus()
SendKeys.Send("{F5}")

AxWebBrowser2.Navigate(TextBox2.Text)
AxWebBrowser2.Focus()
SendKeys.Send("{F5}")
End If

End Sub

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #23
In the timer properites in the designer, enable and set to 10000.

You will need to initiate the timer (timer1.start) after some sort of event
within your application. I know you do not want it during form load.

The reason it crashed initally was that there was nothing there for it to
refresh. After putting in the inital navigate in form load that error went
away.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load

AxWebBrowser1.Navigate("http://www.gutenberg.net/etext02/8mede10.txt") '
TextBox1.Text = "http://www.gutenberg.net/etext02/8mede10.txt"
End Sub

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Timer1.Tick
Dim count As Integer
count = count + 1
If count = 1 Then
Dim REFRESH_COMPLETELY As Object = 3
AxWebBrowser1.Refresh2(REFRESH_COMPLETELY)
Else
AxWebBrowser1.Navigate(TextBox1.Text)
End If
End Sub
"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f********@127.0.0.1...
timer is set to tick every ten minutes:

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Timer1.Tick
Dim count As Integer

Label1.Text = DateTime.Now
Label2.Text = DateTime.Now
count = count + 1

If count = 1 Then
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser2.Navigate(TextBox2.Text)
Else
AxWebBrowser1.Navigate(TextBox1.Text)
AxWebBrowser1.Focus()
SendKeys.Send("{F5}")

AxWebBrowser2.Navigate(TextBox2.Text)
AxWebBrowser2.Focus()
SendKeys.Send("{F5}")
End If

End Sub

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #24
Thanks for all your help scorpion... it works like a charm now...

What I did wrong and you were right about it, was that I was
refreshing something which didn't exist...
I rewrote the app a bit, so what I do now is that when the program
opens, I select the time interval and I click on start button... And
at this particular moment right after start I load the page first for
a first time and since then on, all I do is that I keep on refreshing
it using your code in those periods of time I set at the begining...

Amazingly simple, especially when you already suggested this right at
the begining... I just overlooked that axwebbrower wasn't loaded
first with the page.

Anyways... code looks like this, maybe for a future someone would like
to see it:

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Timer1.Tick

Dim REFRESH_COMPLETELY As Object = 3
AxWebBrowser1.Refresh2(REFRESH_COMPLETELY)

End Sub

and initial start button code:

[code:1:61c6aeeffd]
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Timer1.Start()
AxWebBrowser1.Navigate(TextBox1.Text)
End Sub
[/code:1:61c6aeeffd]
thanks a lot for all your help...
vjay
--- backup at www.dotnetboards.com ---

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #25
glad I could help vj......

"Vjay77" <vj********@hotmail-dot-com.no-spam.invalid> wrote in message
news:3f********@127.0.0.1...
Thanks for all your help scorpion... it works like a charm now...

What I did wrong and you were right about it, was that I was
refreshing something which didn't exist...
I rewrote the app a bit, so what I do now is that when the program
opens, I select the time interval and I click on start button... And
at this particular moment right after start I load the page first for
a first time and since then on, all I do is that I keep on refreshing
it using your code in those periods of time I set at the begining...

Amazingly simple, especially when you already suggested this right at
the begining... I just overlooked that axwebbrower wasn't loaded
first with the page.

Anyways... code looks like this, maybe for a future someone would like
to see it:

Private Sub Timer1_Tick(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Timer1.Tick

Dim REFRESH_COMPLETELY As Object = 3
AxWebBrowser1.Refresh2(REFRESH_COMPLETELY)

End Sub

and initial start button code:

[code:1:61c6aeeffd]
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Timer1.Start()
AxWebBrowser1.Navigate(TextBox1.Text)
End Sub
[/code:1:61c6aeeffd]
thanks a lot for all your help...
vjay
--- backup at www.dotnetboards.com ---

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups ---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption

=---
Nov 20 '05 #26
Cor
Hi Scorpion,

Very persistent as ever and I changed it already, I did not see there was
webbrowser.refresh2(0) in my program.

And I was not so sure of this to be persistent in my answers.

(I tried it now with webbrowser.refresh2(3) and I thought it did work).

I do not know where you are from, but if you are from the so called western
side of the world.
(Or a culture like that)

Merry Christmas

Cor
Nov 20 '05 #27
Thanks Cor,

I am having a good Xmas.

I hope you are the same. It is Christmas you are celebrating right?

On another note Cor, is there a place I can report abuse in this newsgroup?

"Cor" <no*@non.com> wrote in message
news:OT****************@tk2msftngp13.phx.gbl...
Hi Scorpion,

Very persistent as ever and I changed it already, I did not see there was
webbrowser.refresh2(0) in my program.

And I was not so sure of this to be persistent in my answers.

(I tried it now with webbrowser.refresh2(3) and I thought it did work).

I do not know where you are from, but if you are from the so called western side of the world.
(Or a culture like that)

Merry Christmas

Cor

Nov 20 '05 #28
Cor
Hi Scorpion,

Don't pay attention to that troll, it is probably only to get a long thread,
not answer at all.

And absolutly don't think you should do what he ask even not on your
website.

I was almost writing something in that thread about that, but I think even
not doing that is better, when you do not answer than the fun is gone for
him.

Cor
Nov 20 '05 #29
Cor,

view dotnet.framework posting by this guy.

Lets hope nobody believes it.

"Cor" <no*@non.com> wrote in message
news:%2***************@TK2MSFTNGP09.phx.gbl...
Hi Scorpion,

Don't pay attention to that troll, it is probably only to get a long thread, not answer at all.

And absolutly don't think you should do what he ask even not on your
website.

I was almost writing something in that thread about that, but I think even
not doing that is better, when you do not answer than the fun is gone for
him.

Cor

Nov 20 '05 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: carl blanchard | last post by:
Hey everyone i have followed this example http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q172998#kb3 and i have managed to log into my website via my .net forms application, when...
3
by: dricks dr | last post by:
Hi, I'm using the AxWebBrowser Control from microsoft in a C# application. It works fine, but i have many problems to hide the javascript error windows that appear when u visit a website with......
3
by: Michael C | last post by:
Hi all, Quick question about the AxSHDocVw.AxWebBrowser Component. I was wondering if there is a way to view pages generated internally within my application without writing them to disk. For...
0
by: Per Agerbęk | last post by:
an application, that automates using a website. An upcomming change, is the introduction of a java webstart file (.jnlp). The user press this link <a id="dgBoeger__ctl4_Linkbutton1"...
0
by: Susan Lopez via .NET 247 | last post by:
I have an windows form that contains an axwebbrowser. I amaccessing asp pages via https. A Security Alert dialog appearsbecause the site I am accessing does not match the name on thecertificate. I...
4
by: pgmanno | last post by:
Hello all, Here is my question. I have an AxWebBrowser (hereafter refered to as "Browser") control framed in a smart client. The smart client requires logon, and the web app that the Browser...
6
by: Dave Booker | last post by:
It appears that I cannot correctly install the AxWebBrowser in VS2005. I can instantiate an "AxWebBrowser browser" and refer to its members, properties, and methods. I'm having trouble with the...
3
by: Purti Malhotra | last post by:
Hi All, In our Web hosting environment we are using Virtual hosting i.e. multiple websites are on one server and multiple domains are pointing to a single website. Issue: We have two domains...
0
by: thirunavukarasukm | last post by:
Hai. I created one windows application.I am add reference control to add Microsoft WebBrowser Control..In my application I am using HTTPWebRequest and HttpWebResponse class .To request...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.