En este tutorial aprenderemos a implementar el navegador de firefox el gekobrowser en visual basic para eso utilizaremos algunas dlls y archivos que lo puedes encontrar en el enlace de abajo .
Video Tutorial
Codigo Fuente
Formulario
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click GeckoWebBrowser1.Navigate(TextBox1.Text) End Sub End ClassClase
Imports System.IO Imports Skybound.Gecko Namespace My Partial Friend Class MyApplication Protected Overrides Function OnStartup(ByVal eventArgs As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) As Boolean Dim ProfileDirectory As String = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments) & "\xulrunner\DefaultProfile" If Not Directory.Exists(ProfileDirectory) Then Directory.CreateDirectory(ProfileDirectory) End If Xpcom.ProfileDirectory = ProfileDirectory Dim xrPath As String = System.Reflection.Assembly.GetExecutingAssembly.Location xrPath = xrPath.Substring(0, xrPath.LastIndexOf("\") + 1) & "\xulrunner" Xpcom.Initialize(xrPath) Return True End Function End Class End Namespace