How to embed a browser control inside Visual Basic

2019-07-01 10:41发布

问题:

I'd like to embed a web browser control into a Visual Basic 6 application.

The only problem is that I would NOT like to use Internet Explorer, as it has several issues and that's currently what I'm using.

Firefox, Chrome or even Opera would be appreciated if it was reasonably possible.

回答1:

I think that WebKit may be what you need.

WebKit is an open source web browser engine.

A guide is available on how to integratae WebKit with VB is available here: http://vb.wikia.com/wiki/Embedding_WebKit

WebKit is used by Google Chrome and Apple Safari. http://en.wikipedia.org/wiki/WebKit



回答2:

From WebBrowser Control for Visual Basic 6.0 Users:

The Visual Basic 6.0 WebBrowser control, also known as the Microsoft Internet Controls or Shdocvw.dll, is an ActiveX control that allows you to host Internet Explorer inside your application.

Since the WebBrowser Control is a Microsoft ActiveX control, I assume that the only option is Internet Explorer, since that is also a Microsoft product.



回答3:

WebkitX works well, but is commercial so will cost for licensing (but free to try):