设为首页收藏本站

新微赢技术网

 找回密码
 注册
搜索
热搜: 回贴
查看: 343|回复: 2
打印 上一主题 下一主题

如何调用IE菜单”工具”中的internet选项

[复制链接]
跳转到指定楼层
1#
发表于 2009-3-16 17:58:18 | 只看该作者 回帖奖励 |正序浏览 |阅读模式
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

申请友链|小黑屋|最新主题|手机版|新微赢技术网 ( 苏ICP备08020429号 )  

GMT+8, 2024-11-18 13:26 , Processed in 0.069881 second(s), 9 queries , Gzip On, Memcache On.

Powered by xuexi

© 2001-2013 HaiAn.Com.Cn Inc. 寰耽

快速回复 返回顶部 返回列表