Disable History and user credentials with C# WebBrowser?
Hi,
I am using the basic WebBrowser in the .NET framework but have notice that If I use this to brows for example www开发者_如何学C.stackoverflow.com, then when opening IE7 I can find that I have been visiting the stackoverflow?
I need the WebBrowser to disable this log/history, is it possible? Or is there another Browser control I should look at?
BestRegards
I don't think that's easily possible with the standard WebBrowser control, as it's too tied in with IE. Depending on how you're using it, you could get around it by not actually navigating to a page but sending HTML directly to DocumentText instead though.
Editing the registry HKEY_CURRENT_USER > Software > Microsoft > Internet Explorer > TypedURLs may work too, although I doubt that's good practice and could ended up causing more problems than you solve if something goes wrong.
Or you could try webkitdotnet.sourceforge.net for an alternative WebBrowser control.
精彩评论