Chinaunix首页 | 论坛 | 博客
  • 博客访问: 645630
  • 博文数量: 751
  • 博客积分: 5000
  • 博客等级: 大校
  • 技术积分: 4990
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-28 09:48
文章分类

全部博文(751)

文章存档

2011年(1)

2008年(750)

我的朋友

分类:

2008-10-28 10:07:37


  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
【责编:admin】

--------------------next---------------------

阅读(273) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~