home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form OpenDialog
- BackColor = &H00C0C0C0&
- BorderStyle = 3 'Fixed Double
- Caption = "Open File"
- ClientHeight = 2760
- ClientLeft = 2730
- ClientTop = 2280
- ClientWidth = 4200
- ControlBox = 0 'False
- Height = 3165
- Left = 2670
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2760
- ScaleWidth = 4200
- Top = 1935
- Width = 4320
- Begin ListBox FileList
- Height = 1785
- Left = 225
- TabIndex = 3
- Top = 450
- Width = 2430
- End
- Begin CommandButton CancelBtn
- Cancel = -1 'True
- Caption = "Cancel"
- Height = 495
- Left = 2835
- TabIndex = 2
- Top = 960
- Width = 1215
- End
- Begin CommandButton OKBtn
- Caption = "OK"
- Default = -1 'True
- Height = 495
- Left = 2835
- TabIndex = 1
- Top = 405
- Width = 1215
- End
- Begin Label Label1
- BackColor = &H00C0C0C0&
- Caption = "File Type:"
- Height = 255
- Index = 0
- Left = 270
- TabIndex = 0
- Top = 180
- Width = 1215
- End
- Option Explicit
- Sub CancelBtn_Click ()
- Unload Me
- End Sub
- Sub FileList_DblClick ()
- OKBtn_Click
- End Sub
- Sub Form_Load ()
- FileList.Clear
- FileList.AddItem "Titles"
- FileList.AddItem "Authors"
- FileList.AddItem "Publishers"
- End Sub
- Sub OKBtn_Click ()
- Dim FormType As String
- If FileList.Text = "" Then Beep: Exit Sub
- Screen.MousePointer = Hourglass
- NewForm (FileList.Text), ""
- Unload Me
- Screen.MousePointer = Default
- End Sub
-