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:
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 蒋晟
2010-02-05 16:28:37