BP Forums
Gecko Web Browser - Printable Version

+- BP Forums (https://bpforums.info)
+-- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=55)
+--- Forum: Archived Forums (https://bpforums.info/forumdisplay.php?fid=56)
+---- Forum: VB.NET (Visual Basic 2010/2008) (https://bpforums.info/forumdisplay.php?fid=8)
+---- Thread: Gecko Web Browser (/showthread.php?tid=351)



Gecko Web Browser - vbcodegeek - 06-06-2011

I have found this Component for Visual Basic 2010 (I have not tested visual basic 2008). It is called the GeckoWebBrowser. It's LOTS faster than the IE webbrowser. And all the codes based on the codes for Mozilla Firefox.

To use this in your projects you will need a couple things.
1) The Webbrowser Component. You can get this at http://geckofx.googlecode.com/files/Skybound.GeckoFX.bin.v1.9.1.0.zip
2)You will also need these files called Xulrunner. The component needs these files. You can get them at ftp://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.1.2/runtimes/xulrunner-1.9.1.2.en-US.win32.zip

To Implement this into your projects follow these steps
1) Extract all the files
2) Open Visual studio. In the toolbox, add the component. The .dll file is called "Skybound.Gecko.dll" located in the bin.
3) Create a new project and add the component to the form. Do not run it yet, or you will get an error.
4. Add this code
Code:
Imports Skybound.Gecko
Make a new sub and call it "Sub New". Add this code
Code:
Xpcom.Initialize("Location of where you extracted the xulrunner")
So your project should look something like this
Code:
Imports Skybound.Gecko
Public Class Form1
    Sub New()
        ' This call is required by the designer.
        Xpcom.Initialize("C:\Documents and Settings\VBCodegeek\My Documents\Downloads\xulrunner-1.9.2.17.en-US.win32\xulrunner")
        InitializeComponent()
        ' Add any initialization after the InitializeComponent() call.
    End Sub
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub
End Class
It should work Fine. Hope you find it useful. <!-- sSmile --><img src="{SMILIES_PATH}/icon_e_smile.gif" alt="Smile" title="Smile" /><!-- sSmile -->


Re: Gecko Web Browser - brandonio21 - 06-06-2011

Wow! Great advice. Thanks alot for this find! I'm sure all sorts of visitors will find this tutorial helpful. Thank you!


Re: Gecko Web Browser - vbcodegeek - 11-10-2011

He, I know this is and old post, but I just want to share this. Its a version of the Gecko WebBrowser Control but it is not based on firefox 3.6 and earlier. It's based on Firefox 8. So if you have an application that needs a WebBrowser control, you should check this control out.
Link: https://bitbucket.org/geckofx/geckofx-8.0
XULRunner Link: ftp://ftp.mozilla.org/pub/xulrunner/releases/8.0/runtimes/xulrunner-8.0.en-US.win32.zip


Re: Gecko Web Browser - brandonio21 - 11-10-2011

Wow, thanks alot for this!!


Re: Gecko Web Browser - urreasuarez - 01-30-2012

Hi, great advise. I created a window form with text area, but when I write something appear red line under the text into the textbox. How can I do to setup gecho to resolve this problem? or what is happening? It will be setup problem?

Thanks

Jose