home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD14546252001.psc / Form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2001-01-05  |  2.3 KB  |  80 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
  3. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
  4. Begin VB.Form Form1 
  5.    Caption         =   "Form1"
  6.    ClientHeight    =   7770
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   8010
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   7770
  12.    ScaleWidth      =   8010
  13.    StartUpPosition =   3  'Windows Default
  14.    Begin MSComctlLib.ProgressBar pb 
  15.       Height          =   255
  16.       Left            =   5400
  17.       TabIndex        =   3
  18.       Top             =   1560
  19.       Width           =   2535
  20.       _ExtentX        =   4471
  21.       _ExtentY        =   450
  22.       _Version        =   393216
  23.       Appearance      =   0
  24.       Scrolling       =   1
  25.    End
  26.    Begin VB.CommandButton Command2 
  27.       Caption         =   "Command2"
  28.       Height          =   495
  29.       Left            =   5640
  30.       TabIndex        =   2
  31.       Top             =   720
  32.       Width           =   1215
  33.    End
  34.    Begin MSComDlg.CommonDialog d1 
  35.       Left            =   7440
  36.       Top             =   120
  37.       _ExtentX        =   847
  38.       _ExtentY        =   847
  39.       _Version        =   393216
  40.    End
  41.    Begin VB.CommandButton Command1 
  42.       Caption         =   "Command1"
  43.       Height          =   495
  44.       Left            =   5640
  45.       TabIndex        =   1
  46.       Top             =   120
  47.       Width           =   1215
  48.    End
  49.    Begin MSComctlLib.TreeView TreeView1 
  50.       Height          =   7575
  51.       Left            =   240
  52.       TabIndex        =   0
  53.       Top             =   0
  54.       Width           =   5055
  55.       _ExtentX        =   8916
  56.       _ExtentY        =   13361
  57.       _Version        =   393217
  58.       Indentation     =   265
  59.       LineStyle       =   1
  60.       Style           =   7
  61.       Appearance      =   1
  62.    End
  63. Attribute VB_Name = "Form1"
  64. Attribute VB_GlobalNameSpace = False
  65. Attribute VB_Creatable = False
  66. Attribute VB_PredeclaredId = True
  67. Attribute VB_Exposed = False
  68. Private Sub Command1_Click()
  69. Dim x As XMLTree.XMLToTree
  70. On Error GoTo ErrHandler
  71. Set x = New XMLTree.XMLToTree
  72. d1.CancelError = True
  73. d1.ShowOpen
  74. x.PlantTree TreeView1, d1.FileName
  75. ErrHandler:
  76. End Sub
  77. Private Sub Command2_Click()
  78. TreeView1.Nodes.Clear
  79. End Sub
  80.