打印本文 打印本文 关闭窗口 关闭窗口
如何调用IE菜单“工具”中的internet选项
作者:武汉SEO闵涛  文章来源:敏韬网  点击数893  更新时间:2009/6/9 2:31:00  文章录入:mintao  责任编辑:mintao

Option Explicit

Private Declare Function LaunchInternetControlPanel Lib "inetcpl.cpl" (ByVal hwndParent As Long) As Long

Private Declare Function LaunchConnectionDialog Lib "inetcpl.cpl" (ByVal hwndParent As Long) As Long

'调用ie-工具-internet选项对话框

Private Sub Command1_Click()

Dim rc As Long

rc = LaunchInternetControlPanel(Me.hWnd)

If rc = 0 Then

MsgBox "LaunchInternetControlPanel failed!", vbExclamation

End If

End Sub

'调用ie-工具-internet选项对话框中的连接

Private Sub Command2_Click()

Dim rc As Long

rc = LaunchConnectionDialog(Me.hWnd)

If rc = 0 Then

MsgBox "LaunchConnectionDialog failed!", vbExclamation

End If

End Sub

'shell方式调用ie-工具-internet选项对话框

Private Sub Command3_Click()

Shell "C:\windows\control.exe Inetcpl.cpl ", vbNormalFocus

End Sub

打印本文 打印本文 关闭窗口 关闭窗口