您可以在这里快速查找:


 
您的位置: 编程学习 > asp.net教程 > 200509
文章分类

Java技术
2005: 03 04 05 06 07 08
09 10 11 12
2006: 01 02

Asp.net
2005: 07 08 09 10 11 12
2006: 01 02

VB编程
2006: 02

Asp编程
2005: 11 12
2006: 01 02

C++/VC
2005: 10 11 12
2006: 01 02

Delphi
2005: 12
2006: 01 02

其它

 本文章适合所有读者

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

online

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