manish patel
manish patel

Reputation: 1449

Does the WebBrowser control in .NET store the previous navigated page?

Does the WebBrowser control in the .NET Framework store the previous navigated page in memory? If it stores the page, I want to delete these pages from memory. How can I do this in C#?

Upvotes: 0

Views: 391

Answers (2)

Sheng Jiang 蒋晟
Sheng Jiang 蒋晟

Reputation: 15271

You can use the Travel Log object. To get access to it, you need to get the native IWebBrowser2 interface of the browser, QI for IServiceProvider, QueryService for SID_STravelLogCursor for ITravelLogStg, enumerate the entries to find the one you want to delete and call ITravelLogStg.RemoveEntry.

Upvotes: 2

s3yfullah
s3yfullah

Reputation: 165

webBrowser1.GoBack();

webBrowser1.Refresh();

Upvotes: 0

Related Questions