Using Integrated Windows Authentication credentials with a WebBrowser control in VB6
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.
精彩评论