I am using WebBrowser and want it to refresh every time it loads the same page, it will be doing this about every 10 sec. so I need fast code, I have seen the code on msdn it is to long.
Below is the code I have now, but I have tried every thing I can think of and still can not get it to refresh
Sub ShowIEScr(mywebpage as string)
dim wb as new WebBrowser
wb = WebBrowser1 'Tried this to see if I could kill and reload did not work
wb.Refresh(WebBrowserRefreshOption.Completly) 'all option do not work
wb.Navigate(mywebpage) 'this is the hart of what I want to do the rest of the code is just tring to get it to refresh
wb.visible = true 'set to false elswhere, did not work
wb.WebBrowserShortcutsEnabled = true
SendKeys.send("{F5}") 'still did not work
'I set the hight and width then
end sub
I have tried to use the AxWebBrowser with same code tries no luck
Every thing I try I can not get the Browser to refresh
I loaded same webpage in IE and it will refresh when F5 is hit
The above sub is called from a timmer
Also mywebpage changes every call to a different page then rotates back to original
Not sure if it matters but this app needs to run as a Windows service have not tried to run as a exe but do not think it matters.