home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD5591582000.psc / TreeCreator / frmMain.frm (.txt) next >
Encoding:
Visual Basic Form  |  2000-05-04  |  5.3 KB  |  168 lines

  1. VERSION 5.00
  2. Begin VB.Form frmMain 
  3.    Caption         =   "TreeCreate"
  4.    ClientHeight    =   2880
  5.    ClientLeft      =   60
  6.    ClientTop       =   345
  7.    ClientWidth     =   5295
  8.    Icon            =   "frmMain.frx":0000
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   2880
  13.    ScaleWidth      =   5295
  14.    StartUpPosition =   3  'Windows Default
  15.    Begin VB.PictureBox Picture1 
  16.       Height          =   255
  17.       Left            =   0
  18.       ScaleHeight     =   195
  19.       ScaleWidth      =   5235
  20.       TabIndex        =   4
  21.       Top             =   2640
  22.       Width           =   5295
  23.       Begin VB.Label lblMessage 
  24.          Alignment       =   2  'Center
  25.          Caption         =   "This program must run in same directory as HPFTP Server  Not Sub Dir"
  26.          Height          =   255
  27.          Left            =   0
  28.          TabIndex        =   5
  29.          Top             =   0
  30.          Width           =   5175
  31.       End
  32.    End
  33.    Begin VB.Frame Frame2 
  34.       Height          =   2535
  35.       Left            =   120
  36.       TabIndex        =   1
  37.       Top             =   0
  38.       Width           =   1335
  39.       Begin VB.Image Butt3 
  40.          Height          =   480
  41.          Left            =   480
  42.          Picture         =   "frmMain.frx":0442
  43.          ToolTipText     =   "Exit"
  44.          Top             =   1800
  45.          Width           =   480
  46.       End
  47.       Begin VB.Image Butt2 
  48.          Height          =   480
  49.          Left            =   480
  50.          Picture         =   "frmMain.frx":074C
  51.          ToolTipText     =   "Delete Tree"
  52.          Top             =   1080
  53.          Width           =   480
  54.       End
  55.       Begin VB.Image Butt1 
  56.          Height          =   480
  57.          Left            =   480
  58.          Picture         =   "frmMain.frx":0A56
  59.          ToolTipText     =   "Create Tree"
  60.          Top             =   360
  61.          Width           =   480
  62.       End
  63.    End
  64.    Begin VB.Frame Frame1 
  65.       Height          =   2535
  66.       Left            =   1560
  67.       TabIndex        =   0
  68.       Top             =   0
  69.       Width           =   3615
  70.       Begin VB.CommandButton Command1 
  71.          Caption         =   "Select Directory to Create In"
  72.          Height          =   355
  73.          Left            =   240
  74.          TabIndex        =   6
  75.          Top             =   2040
  76.          Width           =   3135
  77.       End
  78.       Begin VB.Label lblDescrip 
  79.          BackStyle       =   0  'Transparent
  80.          Caption         =   $"frmMain.frx":0E98
  81.          BeginProperty Font 
  82.             Name            =   "MS Sans Serif"
  83.             Size            =   9.75
  84.             Charset         =   0
  85.             Weight          =   400
  86.             Underline       =   0   'False
  87.             Italic          =   0   'False
  88.             Strikethrough   =   0   'False
  89.          EndProperty
  90.          Height          =   1335
  91.          Left            =   240
  92.          TabIndex        =   3
  93.          Top             =   720
  94.          Width           =   3255
  95.       End
  96.       Begin VB.Label Label1 
  97.          BackStyle       =   0  'Transparent
  98.          Caption         =   "Welcome to TreeCreator"
  99.          BeginProperty Font 
  100.             Name            =   "MS Sans Serif"
  101.             Size            =   13.5
  102.             Charset         =   0
  103.             Weight          =   400
  104.             Underline       =   0   'False
  105.             Italic          =   0   'False
  106.             Strikethrough   =   0   'False
  107.          EndProperty
  108.          ForeColor       =   &H00C00000&
  109.          Height          =   375
  110.          Left            =   240
  111.          TabIndex        =   2
  112.          Top             =   240
  113.          Width           =   3255
  114.       End
  115.    End
  116. Attribute VB_Name = "frmMain"
  117. Attribute VB_GlobalNameSpace = False
  118. Attribute VB_Creatable = False
  119. Attribute VB_PredeclaredId = True
  120. Attribute VB_Exposed = False
  121. Dim i As Integer, tmpS As String
  122. Private Sub Butt1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  123. If Button = 1 And selected = True Then
  124. Butt1.BorderStyle = 1
  125. End If
  126. End Sub
  127. Private Sub Butt1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
  128. Dim retval As Boolean
  129. Butt1.BorderStyle = 0
  130. If selected = False Then Exit Sub
  131. retval = Create_File(tmpS, True)
  132. Create (tmpS)
  133. FakeFile
  134. retval = Create_File(tmpS, False)
  135. End Sub
  136. Private Sub Butt2_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  137. If Button = 1 Then
  138. Butt2.BorderStyle = 1
  139. End If
  140. End Sub
  141. Private Sub Butt2_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
  142. If Button = 1 Then
  143. Butt2.BorderStyle = 0
  144. MsgBox "Click on the directory then hit 'Delete' on your keyboard"
  145. End If
  146. End Sub
  147. Private Sub Butt3_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
  148. If Button = 1 Then
  149. Butt3.BorderStyle = 1
  150. End If
  151. End Sub
  152. Private Sub Butt3_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
  153. Butt3.BorderStyle = 0
  154. Call Wait(0.25)
  155. Unload Me
  156. End Sub
  157. Private Sub Command1_Click()
  158. Dim ret As String
  159. ret = BrowseForFolder(frmMain.hWnd, "Select a Directory")
  160. If ret = "" Then Exit Sub
  161. tmpS = ret
  162. selected = True
  163. End Sub
  164. Private Sub Form_Load()
  165. selected = False
  166. tFile = "C:\Windows\Temp\hpftp.dat"
  167. End Sub
  168.