Chinaunix首页 | 论坛 | 博客
  • 博客访问: 446015
  • 博文数量: 750
  • 博客积分: 40000
  • 博客等级: 大将
  • 技术积分: 4970
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-09 12:36
文章分类

全部博文(750)

文章存档

2011年(1)

2008年(749)

我的朋友
最近访客

分类:

2008-09-09 15:25:15


  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---------------------

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