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
博客介绍了调用IE工具中Internet选项对话框的方法。包括使用Declare Function声明函数来调用Internet选项对话框及其中的连接,还介绍了通过Shell方式调用该对话框,若调用失败会给出相应提示。
2825

被折叠的 条评论
为什么被折叠?



