简体   繁体   中英

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.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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM