Notifications
Clear all

[Closed] How to simulate CTRL+F5 refresh of page in DotNet WebBrowser

Hi,

I`ve created a simple web browser using “Creating A Simple Web Browser Using DotNet” tutorial from MaxScript help.

rollout webbrowser_rollout "Web Test" width:600 height:600 
( 
dotNetControl wb "System.Windows.Forms.WebBrowser" pos:[10,10] width:580 height:580
 ) 
createdialog webbrowser_rollout
webbrowser_rollout.wb.url = dotNetObject "System.Uri" "http:// http://forums.cgsociety.org /"


Now I need to reload the page and there are methods like refresh(), navigate() and so on for doing this. But they do simple reload of the page.

webbrowser_rollout.wb.refresh()

What I need is to simulate pressing CTRL+F5 in browser window. I.e. simulating a complete refresh of the page (not from browser`s cache).
I found another method in DotNet for doing customized refresh:

showMethods webbrowser_rollout.wb
...
.Refresh <System.Windows.Forms.WebBrowserRefreshOption>opt


But I can`t understand how to use it with the code above (to simulate CTRL+F5 or hard-refresh of page in browser)
Is this method working in 3dsMAX or just my scripting abilities is so low?

Thanks.

2 Replies

webbrowser_rollout.wb.refresh (dotnetclass “system.windows.forms.WebBrowserRefreshOption”).completely

there’re a few other methods to tackle same issue you could check if that one won’t work

Thanks alot Serejah!