| | |
Open HTML
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Sep 2007
Posts: 8
Reputation:
Solved Threads: 0
How do I open a HTML page in VB.NET 2003? I am trying to build a main menu page and would like to open an HTML document from the main menu. Can anyone help?
Dick
rlafran2@travelers.com
Dick
rlafran2@travelers.com
•
•
Join Date: Sep 2007
Posts: 8
Reputation:
Solved Threads: 0
I have a document that contains Hyperlinks on it. The document is an HTML document and I just want to open the HTML document from the main menu page. For example the following code opens Access 2003 databases:
Imports Microsoft.Office.Interop
Public Class frmMainMenu
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents lblDelinquency As System.Windows.Forms.Label
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents lblFloridaSubcontractorDatabase As System.Windows.Forms.Label
Friend WithEvents lblMAFaxes As System.Windows.Forms.Label
Friend WithEvents lblPUCPool As System.Windows.Forms.Label
Friend WithEvents lblPremiumAccuracyCalculator As System.Windows.Forms.Label
Friend WithEvents lblPremiumMaximization As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMainMenu))
Me.lblDelinquency = New System.Windows.Forms.Label
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.lblFloridaSubcontractorDatabase = New System.Windows.Forms.Label
Me.lblMAFaxes = New System.Windows.Forms.Label
Me.lblPUCPool = New System.Windows.Forms.Label
Me.lblPremiumAccuracyCalculator = New System.Windows.Forms.Label
Me.lblPremiumMaximization = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'lblDelinquency
'
Me.lblDelinquency.BackColor = System.Drawing.Color.Blue
Me.lblDelinquency.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.lblDelinquency.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblDelinquency.ForeColor = System.Drawing.Color.White
Me.lblDelinquency.Location = New System.Drawing.Point(24, 80)
Me.lblDelinquency.Name = "lblDelinquency"
Me.lblDelinquency.Size = New System.Drawing.Size(184, 24)
Me.lblDelinquency.TabIndex = 0
Me.lblDelinquency.Text = "Delinquency Database"
Me.lblDelinquency.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'PictureBox1
'
Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
Me.PictureBox1.Location = New System.Drawing.Point(424, 208)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(312, 392)
Me.PictureBox1.TabIndex = 1
Me.PictureBox1.TabStop = False
'
'lblFloridaSubcontractorDatabase
'
Me.lblFloridaSubcontractorDatabase.BackColor = System.Drawing.Color.Blue
Me.lblFloridaSubcontractorDatabase.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblFloridaSubcontractorDatabase.ForeColor = System.Drawing.Color.White
Me.lblFloridaSubcontractorDatabase.Location = New System.Drawing.Point(24, 104)
Me.lblFloridaSubcontractorDatabase.Name = "lblFloridaSubcontractorDatabase"
Me.lblFloridaSubcontractorDatabase.Size = New System.Drawing.Size(184, 24)
Me.lblFloridaSubcontractorDatabase.TabIndex = 2
Me.lblFloridaSubcontractorDatabase.Text = "Florida Subcontractor Database"
Me.lblFloridaSubcontractorDatabase.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'lblMAFaxes
'
Me.lblMAFaxes.BackColor = System.Drawing.Color.Blue
Me.lblMAFaxes.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblMAFaxes.ForeColor = System.Drawing.Color.White
Me.lblMAFaxes.Location = New System.Drawing.Point(24, 128)
Me.lblMAFaxes.Name = "lblMAFaxes"
Me.lblMAFaxes.Size = New System.Drawing.Size(184, 24)
Me.lblMAFaxes.TabIndex = 3
Me.lblMAFaxes.Text = "MA Faxes Database"
Me.lblMAFaxes.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'lblPUCPool
'
Me.lblPUCPool.BackColor = System.Drawing.Color.Blue
Me.lblPUCPool.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblPUCPool.ForeColor = System.Drawing.Color.White
Me.lblPUCPool.Location = New System.Drawing.Point(24, 152)
Me.lblPUCPool.Name = "lblPUCPool"
Me.lblPUCPool.Size = New System.Drawing.Size(184, 24)
Me.lblPUCPool.TabIndex = 4
Me.lblPUCPool.Text = "PUC Pool Database"
Me.lblPUCPool.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'lblPremiumAccuracyCalculator
'
Me.lblPremiumAccuracyCalculator.BackColor = System.Drawing.Color.Blue
Me.lblPremiumAccuracyCalculator.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblPremiumAccuracyCalculator.ForeColor = System.Drawing.Color.White
Me.lblPremiumAccuracyCalculator.Location = New System.Drawing.Point(24, 176)
Me.lblPremiumAccuracyCalculator.Name = "lblPremiumAccuracyCalculator"
Me.lblPremiumAccuracyCalculator.Size = New System.Drawing.Size(184, 24)
Me.lblPremiumAccuracyCalculator.TabIndex = 5
Me.lblPremiumAccuracyCalculator.Text = "Premium Accuracy Calculator"
Me.lblPremiumAccuracyCalculator.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'lblPremiumMaximization
'
Me.lblPremiumMaximization.BackColor = System.Drawing.Color.Blue
Me.lblPremiumMaximization.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblPremiumMaximization.ForeColor = System.Drawing.Color.White
Me.lblPremiumMaximization.Location = New System.Drawing.Point(24, 200)
Me.lblPremiumMaximization.Name = "lblPremiumMaximization"
Me.lblPremiumMaximization.Size = New System.Drawing.Size(184, 24)
Me.lblPremiumMaximization.TabIndex = 6
Me.lblPremiumMaximization.Text = "Premium Maximization Database"
Me.lblPremiumMaximization.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'Label1
'
Me.Label1.BackColor = System.Drawing.Color.Blue
Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.ForeColor = System.Drawing.Color.White
Me.Label1.Location = New System.Drawing.Point(424, 608)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(312, 24)
Me.Label1.TabIndex = 7
Me.Label1.Text = "You're just a click away."
Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'frmMainMenu
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.Color.LightSteelBlue
Me.ClientSize = New System.Drawing.Size(1028, 650)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.lblPremiumMaximization)
Me.Controls.Add(Me.lblPremiumAccuracyCalculator)
Me.Controls.Add(Me.lblPUCPool)
Me.Controls.Add(Me.lblMAFaxes)
Me.Controls.Add(Me.lblFloridaSubcontractorDatabase)
Me.Controls.Add(Me.PictureBox1)
Me.Controls.Add(Me.lblDelinquency)
Me.Name = "frmMainMenu"
Me.Text = "Main Menu"
Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub lblDelinquency_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblDelinquency.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the delinquency database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\$natdata\Delinquency_Database\delinquency.mdb")
objAccess = Nothing
End Sub
Private Sub lblFloridaSubcontractorDatabase_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblFloridaSubcontractorDatabase.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the FlSubContractor database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\\$natdata\PERFRPT\2000 SERVICE REPORT\AMU Shortcuts\FlSubContractor.mdb")
objAccess = Nothing
End Sub
Private Sub lblMAFaxes_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblMAFaxes.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the MAFaxes database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\$natdata\MA COI Fax\MAFaxes.mdb")
objAccess = Nothing
End Sub
Private Sub lblPUCPool_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblPUCPool.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the pcu-pool database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\$natdata\Perfrpt\2000 Service Report\pcu-pool.mdb")
objAccess = Nothing
End Sub
Private Sub lblPremiumAccuracyCalculator_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblPremiumAccuracyCalculator.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the PA_Calculator database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\$natdata\Premium_Accuracy_Databases\PA_Calculator.mdb")
objAccess = Nothing
End Sub
Private Sub lblPremiumMaximization_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblPremiumMaximization.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the Premium Maximization database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\$natdata\Premium_Accuracy_Databases\Premium Maximization.mdb")
objAccess = Nothing
End Sub
End Class
What I need to know is how to open Document.html.
Thanks,
Dick
Imports Microsoft.Office.Interop
Public Class frmMainMenu
Inherits System.Windows.Forms.Form
#Region " Windows Form Designer generated code "
Public Sub New()
MyBase.New()
'This call is required by the Windows Form Designer.
InitializeComponent()
'Add any initialization after the InitializeComponent() call
End Sub
'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub
'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer
'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents lblDelinquency As System.Windows.Forms.Label
Friend WithEvents PictureBox1 As System.Windows.Forms.PictureBox
Friend WithEvents lblFloridaSubcontractorDatabase As System.Windows.Forms.Label
Friend WithEvents lblMAFaxes As System.Windows.Forms.Label
Friend WithEvents lblPUCPool As System.Windows.Forms.Label
Friend WithEvents lblPremiumAccuracyCalculator As System.Windows.Forms.Label
Friend WithEvents lblPremiumMaximization As System.Windows.Forms.Label
Friend WithEvents Label1 As System.Windows.Forms.Label
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(frmMainMenu))
Me.lblDelinquency = New System.Windows.Forms.Label
Me.PictureBox1 = New System.Windows.Forms.PictureBox
Me.lblFloridaSubcontractorDatabase = New System.Windows.Forms.Label
Me.lblMAFaxes = New System.Windows.Forms.Label
Me.lblPUCPool = New System.Windows.Forms.Label
Me.lblPremiumAccuracyCalculator = New System.Windows.Forms.Label
Me.lblPremiumMaximization = New System.Windows.Forms.Label
Me.Label1 = New System.Windows.Forms.Label
Me.SuspendLayout()
'
'lblDelinquency
'
Me.lblDelinquency.BackColor = System.Drawing.Color.Blue
Me.lblDelinquency.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.lblDelinquency.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblDelinquency.ForeColor = System.Drawing.Color.White
Me.lblDelinquency.Location = New System.Drawing.Point(24, 80)
Me.lblDelinquency.Name = "lblDelinquency"
Me.lblDelinquency.Size = New System.Drawing.Size(184, 24)
Me.lblDelinquency.TabIndex = 0
Me.lblDelinquency.Text = "Delinquency Database"
Me.lblDelinquency.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'PictureBox1
'
Me.PictureBox1.Image = CType(resources.GetObject("PictureBox1.Image"), System.Drawing.Image)
Me.PictureBox1.Location = New System.Drawing.Point(424, 208)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(312, 392)
Me.PictureBox1.TabIndex = 1
Me.PictureBox1.TabStop = False
'
'lblFloridaSubcontractorDatabase
'
Me.lblFloridaSubcontractorDatabase.BackColor = System.Drawing.Color.Blue
Me.lblFloridaSubcontractorDatabase.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblFloridaSubcontractorDatabase.ForeColor = System.Drawing.Color.White
Me.lblFloridaSubcontractorDatabase.Location = New System.Drawing.Point(24, 104)
Me.lblFloridaSubcontractorDatabase.Name = "lblFloridaSubcontractorDatabase"
Me.lblFloridaSubcontractorDatabase.Size = New System.Drawing.Size(184, 24)
Me.lblFloridaSubcontractorDatabase.TabIndex = 2
Me.lblFloridaSubcontractorDatabase.Text = "Florida Subcontractor Database"
Me.lblFloridaSubcontractorDatabase.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'lblMAFaxes
'
Me.lblMAFaxes.BackColor = System.Drawing.Color.Blue
Me.lblMAFaxes.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblMAFaxes.ForeColor = System.Drawing.Color.White
Me.lblMAFaxes.Location = New System.Drawing.Point(24, 128)
Me.lblMAFaxes.Name = "lblMAFaxes"
Me.lblMAFaxes.Size = New System.Drawing.Size(184, 24)
Me.lblMAFaxes.TabIndex = 3
Me.lblMAFaxes.Text = "MA Faxes Database"
Me.lblMAFaxes.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'lblPUCPool
'
Me.lblPUCPool.BackColor = System.Drawing.Color.Blue
Me.lblPUCPool.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblPUCPool.ForeColor = System.Drawing.Color.White
Me.lblPUCPool.Location = New System.Drawing.Point(24, 152)
Me.lblPUCPool.Name = "lblPUCPool"
Me.lblPUCPool.Size = New System.Drawing.Size(184, 24)
Me.lblPUCPool.TabIndex = 4
Me.lblPUCPool.Text = "PUC Pool Database"
Me.lblPUCPool.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'lblPremiumAccuracyCalculator
'
Me.lblPremiumAccuracyCalculator.BackColor = System.Drawing.Color.Blue
Me.lblPremiumAccuracyCalculator.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblPremiumAccuracyCalculator.ForeColor = System.Drawing.Color.White
Me.lblPremiumAccuracyCalculator.Location = New System.Drawing.Point(24, 176)
Me.lblPremiumAccuracyCalculator.Name = "lblPremiumAccuracyCalculator"
Me.lblPremiumAccuracyCalculator.Size = New System.Drawing.Size(184, 24)
Me.lblPremiumAccuracyCalculator.TabIndex = 5
Me.lblPremiumAccuracyCalculator.Text = "Premium Accuracy Calculator"
Me.lblPremiumAccuracyCalculator.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'lblPremiumMaximization
'
Me.lblPremiumMaximization.BackColor = System.Drawing.Color.Blue
Me.lblPremiumMaximization.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, CType((System.Drawing.FontStyle.Bold Or System.Drawing.FontStyle.Underline), System.Drawing.FontStyle), System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.lblPremiumMaximization.ForeColor = System.Drawing.Color.White
Me.lblPremiumMaximization.Location = New System.Drawing.Point(24, 200)
Me.lblPremiumMaximization.Name = "lblPremiumMaximization"
Me.lblPremiumMaximization.Size = New System.Drawing.Size(184, 24)
Me.lblPremiumMaximization.TabIndex = 6
Me.lblPremiumMaximization.Text = "Premium Maximization Database"
Me.lblPremiumMaximization.TextAlign = System.Drawing.ContentAlignment.MiddleLeft
'
'Label1
'
Me.Label1.BackColor = System.Drawing.Color.Blue
Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Me.Label1.ForeColor = System.Drawing.Color.White
Me.Label1.Location = New System.Drawing.Point(424, 608)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(312, 24)
Me.Label1.TabIndex = 7
Me.Label1.Text = "You're just a click away."
Me.Label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter
'
'frmMainMenu
'
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.BackColor = System.Drawing.Color.LightSteelBlue
Me.ClientSize = New System.Drawing.Size(1028, 650)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.lblPremiumMaximization)
Me.Controls.Add(Me.lblPremiumAccuracyCalculator)
Me.Controls.Add(Me.lblPUCPool)
Me.Controls.Add(Me.lblMAFaxes)
Me.Controls.Add(Me.lblFloridaSubcontractorDatabase)
Me.Controls.Add(Me.PictureBox1)
Me.Controls.Add(Me.lblDelinquency)
Me.Name = "frmMainMenu"
Me.Text = "Main Menu"
Me.WindowState = System.Windows.Forms.FormWindowState.Maximized
Me.ResumeLayout(False)
End Sub
#End Region
Private Sub lblDelinquency_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblDelinquency.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the delinquency database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\$natdata\Delinquency_Database\delinquency.mdb")
objAccess = Nothing
End Sub
Private Sub lblFloridaSubcontractorDatabase_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblFloridaSubcontractorDatabase.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the FlSubContractor database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\\$natdata\PERFRPT\2000 SERVICE REPORT\AMU Shortcuts\FlSubContractor.mdb")
objAccess = Nothing
End Sub
Private Sub lblMAFaxes_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblMAFaxes.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the MAFaxes database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\$natdata\MA COI Fax\MAFaxes.mdb")
objAccess = Nothing
End Sub
Private Sub lblPUCPool_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblPUCPool.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the pcu-pool database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\$natdata\Perfrpt\2000 Service Report\pcu-pool.mdb")
objAccess = Nothing
End Sub
Private Sub lblPremiumAccuracyCalculator_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblPremiumAccuracyCalculator.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the PA_Calculator database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\$natdata\Premium_Accuracy_Databases\PA_Calculator.mdb")
objAccess = Nothing
End Sub
Private Sub lblPremiumMaximization_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblPremiumMaximization.Click
' instantiate Access
Dim objAccess As Access.Application
objAccess = New Access.ApplicationClass
' make Access visible to the user
objAccess.Visible = True
' open the Premium Maximization database
objAccess.OpenCurrentDatabase(filepath:="\\tsb124m3\$natdata\Premium_Accuracy_Databases\Premium Maximization.mdb")
objAccess = Nothing
End Sub
End Class
What I need to know is how to open Document.html.
Thanks,
Dick
![]() |
Similar Threads
- How to open HTML page in a browser with specific options selected in drop-down boxes? (Perl)
- open html files in jar (Java)
- Open any file and List. (Visual Basic 4 / 5 / 6)
- IE won't open *local* PHP files anymore! (Web Browsers)
- Generation html in perl (Perl)
- jsp command for open a page (JSP)
- HTML problems (Windows NT / 2000 / XP)
- Open HTML Page (Perl)
Other Threads in the VB.NET Forum
- Previous Thread: Need help with ms access and vb.net
- Next Thread: Fill Color
| Thread Tools | Search this Thread |
"crystal .net .net2005 2008 access add advanced application array assignment basic beginner box button buttons center click code combo convert cpu cuesent data database datagrid datagridview designer dissertation dissertations dissertationthesis dosconsolevb.net editvb.net employees excel exists firewall forms html image images isnumericfuntioncall listview login map math memory mobile module msaccess mssqlbackend mysql navigate net number opacity open pan pdf picturebox picturebox2 port print printpreview record regex reports" reuse right-to-left save savedialog search serial socket sorting sqldatbase sqlserver storedprocedure string temp textbox timer txttoxmlconverter upload useraccounts usercontol usercontrol vb vb.net vb.nettoolboxvisualbasic2008sidebar vba vbnet vista visual visualbasic visualbasic.net visualstudio.net web wpf wrapingcode xml





