home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code1 / mdi_demo / opendial.frm < prev    next >
Text File  |  1994-04-07  |  2KB  |  95 lines

  1. VERSION 2.00
  2. Begin Form OpenDialog 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   3  'Fixed Double
  5.    Caption         =   "Open File"
  6.    ClientHeight    =   2760
  7.    ClientLeft      =   2730
  8.    ClientTop       =   2280
  9.    ClientWidth     =   4200
  10.    ControlBox      =   0   'False
  11.    Height          =   3165
  12.    Left            =   2670
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MinButton       =   0   'False
  16.    ScaleHeight     =   2760
  17.    ScaleWidth      =   4200
  18.    Top             =   1935
  19.    Width           =   4320
  20.    Begin ListBox FileList 
  21.       Height          =   1785
  22.       Left            =   225
  23.       TabIndex        =   3
  24.       Top             =   450
  25.       Width           =   2430
  26.    End
  27.    Begin CommandButton CancelBtn 
  28.       Cancel          =   -1  'True
  29.       Caption         =   "Cancel"
  30.       Height          =   495
  31.       Left            =   2835
  32.       TabIndex        =   2
  33.       Top             =   960
  34.       Width           =   1215
  35.    End
  36.    Begin CommandButton OKBtn 
  37.       Caption         =   "OK"
  38.       Default         =   -1  'True
  39.       Height          =   495
  40.       Left            =   2835
  41.       TabIndex        =   1
  42.       Top             =   405
  43.       Width           =   1215
  44.    End
  45.    Begin Label Label1 
  46.       BackColor       =   &H00C0C0C0&
  47.       Caption         =   "File Type:"
  48.       Height          =   255
  49.       Index           =   0
  50.       Left            =   270
  51.       TabIndex        =   0
  52.       Top             =   180
  53.       Width           =   1215
  54.    End
  55. End
  56. Option Explicit
  57.  
  58. Sub CancelBtn_Click ()
  59.  
  60. Unload Me
  61.  
  62. End Sub
  63.  
  64. Sub FileList_DblClick ()
  65.  
  66. OKBtn_Click
  67.  
  68. End Sub
  69.  
  70. Sub Form_Load ()
  71.  
  72. FileList.Clear
  73.  
  74. FileList.AddItem "Titles"
  75. FileList.AddItem "Authors"
  76. FileList.AddItem "Publishers"
  77.  
  78. End Sub
  79.  
  80. Sub OKBtn_Click ()
  81. Dim FormType As String
  82.  
  83. If FileList.Text = "" Then Beep: Exit Sub
  84.  
  85. Screen.MousePointer = Hourglass
  86.  
  87. NewForm (FileList.Text), ""
  88.  
  89. Unload Me
  90.  
  91. Screen.MousePointer = Default
  92.  
  93. End Sub
  94.  
  95.