views:

71

answers:

1

I have vb6 project that uses Refresh2 method of WebBrowser. How I can access this method in .net project?

+1  A: 

The WebBrowser control in WinForms has two Refresh methods:

public void Refresh();
public void Refresh(WebBrowserRefreshOption opt);

The second one in fact calls Refresh2() on the underlying COM component. Just pass in the enum value that you want, depending on the refresh options that you want.

Eilon
I cannot find what is default value for WebBrowser.Refresh2 method
volody
@volody I don't think it has a default value - you have to pass in the value that you want.
Eilon