我使用的特殊程序,它加载一些网址想象它像自动加载www.google.com窗口 - 程序启动,它加载网站 - 但当你点击一些链接在程序窗口中打开默认浏览器 - 它如何能够在默认浏览器中打开 - 我使用这个代码:System.Uri(“”)在默认浏览器中?
<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)
使用Visual Basic 2008
引用:在默认浏览器“打开 - 它如何能在默认浏览器中打开“。你需要解决这个问题。 – 2010-04-18 18:23:18
你在程序中打开了一些页面而不是浏览器 - 在那里 - 在程序中点击页面上的某个链接,它会在IE中打开,而不是默认浏览器。 – Hallgaws 2010-04-18 18:29:56