⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 导入导出ie收藏夹
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin MSComDlg.CommonDialog CDlgBookmark 
      Left            =   240
      Top             =   1200
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command2 
      Caption         =   "Command2"
      Height          =   495
      Left            =   2760
      TabIndex        =   3
      Top             =   2040
      Width           =   1575
   End
   Begin VB.CommandButton CmdOK 
      Caption         =   "Command1"
      Height          =   375
      Left            =   840
      TabIndex        =   2
      Top             =   2040
      Width           =   1215
   End
   Begin VB.OptionButton OptImport 
      Caption         =   "Option2"
      Height          =   375
      Left            =   2640
      TabIndex        =   1
      Top             =   480
      Width           =   1695
   End
   Begin VB.OptionButton OptExport 
      Caption         =   "Option1"
      Height          =   255
      Left            =   720
      TabIndex        =   0
      Top             =   600
      Width           =   1335
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

    Dim IsImport As Boolean

    Private Sub CmdCancel_Click() '取消

    End

    End Sub

    Private Sub CmdOK_Click()

    ImportExportBookmark (IsImport)

    End Sub

    Private Sub Form_Load()

    OptExport.Value = True

    IsImport = False

    CDlgBookmark.CancelError = True 'CancelError属性设置为True时,无论何时选取“取消”按钮,均产生32755 (cdlCancel)号错误。

    End Sub

    Private Sub OptExport_Click() '选择“导出”

    IsImport = False

    End Sub

    Private Sub OptImport_Click() '选择“导入”

    IsImport = True

    End Sub

    Private Sub ImportExportBookmark(fImport As Boolean)

    Dim ObjSUH As SHDocVw.ShellUIHelper

    Set ObjSUH = New SHDocVw.ShellUIHelper

    If fImport = True Then

      CDlgBookmark.DialogTitle = "书签文件导入收藏夹:"


      On Error GoTo CancelHandler

      CDlgBookmark.ShowOpen

    Else

      CDlgBookmark.DialogTitle = "收藏夹导出到书签文件:"

      On Error GoTo CancelHandler

      CDlgBookmark.ShowSave

    End If

    ObjSUH.ImportExportFavorites fImport, CDlgBookmark.FileName

CancelHandler:     '文件对话框选择了“取消”按钮

    If Err.Number = cdlCancel Then Exit Sub

    End Sub


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -