www.pudn.com > PausVbMorpher.zip > FrmOpen.frm
VERSION 5.00
Begin VB.Form FrmOpen
BorderStyle = 1 'Fixed Single
Caption = "Open morph"
ClientHeight = 4845
ClientLeft = 45
ClientTop = 330
ClientWidth = 4695
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4845
ScaleWidth = 4695
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Command2
Caption = "Ok"
Height = 375
Left = 3240
TabIndex = 4
Top = 4440
Width = 1455
End
Begin VB.CommandButton Command1
Caption = "Cancel"
Height = 375
Left = 1680
TabIndex = 3
Top = 4440
Width = 1455
End
Begin VB.DirListBox Dir1
Height = 3690
Left = 0
TabIndex = 2
Top = 720
Width = 4695
End
Begin VB.DriveListBox Drive1
Height = 315
Left = 0
TabIndex = 1
Top = 360
Width = 4695
End
Begin VB.Label Label1
Caption = "Select a directory in which morphed images exist."
Height = 255
Left = 0
TabIndex = 0
Top = 0
Width = 4575
End
End
Attribute VB_Name = "FrmOpen"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim LastDrive As String
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
FrmViewer.OpenMorphDir = Dir1.Path
If Right(FrmViewer.OpenMorphDir, 1) = "\" Then FrmViewer.OpenMorphDir = Mid(FrmViewer.OpenMorphDir, 1, Len(FrmViewer.OpenMorphDir) - 1)
Unload Me
End Sub
Private Sub Drive1_Change()
On Error GoTo ex
Dir1 = Drive1
LastDrive = Drive1.Drive
Exit Sub
ex:
MsgBox "No device in drive " & Drive1.Drive, vbExclamation Or vbOKOnly, "Empty drive"
Drive1.Drive = LastDrive
End Sub
Private Sub Form_Load()
LastDrive = Drive1.Drive
End Sub