Harry
Harry

Reputation: 5006

How to disable password manager for WebBrowser control

The problem is simple, I don't want my embedded browser to display any modal dialogs. User enters the password on the site, that's it. No dialog to "remember this password".

Please DO NOT answer with "use different browser". My question is exactly about System.Windows.Controls.WebBrowser WPF control.

I KNOW that modifying the page HTML on the fly with autocomplete="off" works, but I wonder if there is a Windows Registry hack for that, as it's true for many other super annoying Internet Explorer quirks.

Upvotes: 0

Views: 355

Answers (1)

Hille
Hille

Reputation: 2319

Heres a registry 'hack' for you:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

Add a new DWORD Value to this directory.
The name needs to be DisablePasswordCachingto and it must be a hexadecimal type.
Insert 1 as value and you should be good to go.

Now you have successfully disabled the password caching in IE (and WPF browser).

If this registry is set, then the standalone IE will not save any passwords too. It's a global option.

Links from where I got the solution:
SO (which is not a good answer so I wrote this one)
Microsoft Support

Upvotes: 1

Related Questions