Can I make that TWebBrowser refresh loaded URL every second or every minutes? Or specify the time when it has to refresh the URL?!
Can I make that TWebBrowser refresh loaded URL every second or every minutes? Or specify the time when it has to refresh the URL?!
I use the below code for my Webbrowser to control it every 10 seconds, you can try to use something similar, but note that it consumes lot of resources:
In my http://mysite/message.aspx page load event I've printed a unique value like this:Code:mymethod() { WebBrowser wbmessages = new WebBrowser(); Uri myuri = new Uri("http://mysite/message.aspx); wbmessages.Url = myuri; mypanel.Controls.Add(wbmessages); }
Code:System.Guid gid = System.Guid.NewGuid(); Response.Write(gid.ToString());
Can you provide me some tutorial to follow? Where, should I starts to write "mymethod"?
Sorry, I am novice?
Reload the currently displayed item.
where:-Code:Reloads the currently displayed item. procedure Refresh2; overload; procedure Refresh2(var Level: OleVariant); overload;
Level is one of:
More information here.Code:TRefreshConstants = ( REFRESH_NORMAL = 0, Default. REFRESH_IFEXPIRED = 1, Refresh only occurs if the page has expired. REFRESH_CONTINUE = 2, For WebBrowser internal use. Do not use. REFRESH_COMPLETELY = 3 ); Sends "pragma:nocache" to the server, requesting that the returned copy is refreshed and not a cached version.
Bookmarks