System.Uri("") in default browser?

Posted by Hallgaws on Stack Overflow See other posts from Stack Overflow or by Hallgaws
Published on 2010-04-18T17:45:57Z Indexed on 2010/04/18 17:53 UTC
Read the original article Hit count: 260

Filed under:

I am using special program where it loads some url imagine it like window with automatically load www.google.com - program starts and it load the site - BUT when you click on some links in the program window it opens in default browser - how it can be opened in default browser - I am using this code:

<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class Form1
Inherits System.Windows.Forms.Form

<System.Diagnostics.DebuggerNonUserCode()> _
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
    Try
        If disposing AndAlso components IsNot Nothing Then
            components.Dispose()
        End If
    Finally
        MyBase.Dispose(disposing)
    End Try
End Sub

Private components As System.ComponentModel.IContainer
<System.Diagnostics.DebuggerStepThrough()> _
Private Sub InitializeComponent()
    Me.components = New System.ComponentModel.Container
    Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Form1))
    Me.WB = New System.Windows.Forms.WebBrowser
    .....
    .....

Me.WB.Url = New System.Uri("http://www.google.com/", System.UriKind.Absolute)

Using Visual Basic 2008

© Stack Overflow or respective owner

Related posts about vb.net