Is it possible to Embed Gecko or Webkit in a Windows Form just like a WebView?

前端 未结 10 1279
心在旅途
心在旅途 2020-11-28 19:19

I\'d love to know if there is such a thing as a Gecko.NET ;) I mean, just like we can embed a WebView and that is an \"instance\" of IE7 inside any Windows Forms application

10条回答
  •  旧时难觅i
    2020-11-28 19:53

    It certainly is possible. All you need to do is register the Mozilla ActiveX control (mozctlx.dll I believe), and you can drag it onto your form as any ActiveX control. The programming interface is similar (though not identical) to the IE one, and you can even use the Microsoft.MSHTML.dll managed library for control in some cases.

    I believe this is packaged with Firefox. If not, you can get just the embeddable bits from Mozilla as well. Just do a Google search for Mozilla ActiveX control or Mozilla Embedding C# and that should take you down the right path.

提交回复
热议问题