正在阅读:如何调用IE菜单中的internet选项如何调用IE菜单中的internet选项

2004-08-17 10:12 出处:CSDN 作者:online 责任编辑:linjixiong

  以下是一段如何调用IE菜单中的“工具”->Internet选项的代码:



  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


察看评论详细内容 我要发表评论
作者笔名 简短内容 发表时间
:

关注我们

最新资讯离线随时看 聊天吐槽赢奖品