views:

58

answers:

2

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#?

A: 
webBrowser1.GoBack();

webBrowser1.Refresh();
TeknoSeyfo
A: 

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.

Sheng Jiang 蒋晟