开发者

Using Integrated Windows Authentication credentials with a WebBrowser control in VB6

开发者 https://www.devze.com 2023-02-11 03:17 出处:网络
I have a VB6 application using a WebBrowser control to access a site. I need to push the user\'s Windows Authentication credentials to the control so he won\'t get asked to enter his user and passwor

I have a VB6 application using a WebBrowser control to access a site. I need to push the user's Windows Authentication credentials to the control so he won't get asked to enter his user and password when he accesses a web application in an intranet.

I have seen solutions in .NET like this post.

开发者_开发百科

Send credentials to WebBrowser

Is there a way to achieve this with Visual Basic 6?


The VB6 WebBrowser control will exhibit the same behavior as IE--so if the URL is in the trusted sites or intranet zones it should automatically use your network credentials--no coding necessary.

If you want to programmatically add your URL to a zone, use the SetZoneMapping function.

0

精彩评论

暂无评论...
验证码 换一张
取 消