Dzwebs.Net

撰写电脑技术杂文十余年

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

Admin | 2008-1-27 11:54:29 | 被阅次数 | 6794

温馨提示!

如果未能解决您的问题,请点击搜索;登陆可复制文章,点击登陆

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


该杂文来自: 网页制作杂文

上一篇:(主办)经营一个网站需要办理哪些牌照、需要办理哪

下一篇:轮番播放的广告源代码—javascript+Div实现

网站备案号:

网站备案号:滇ICP备11001339号-7

版权属性:

Copyright 2007-2021-forever Inc. all Rights Reserved.

联系方式:

Email:dzwebs@126.com QQ:83539231 访问统计