home *** CD-ROM | disk | FTP | other *** search
Wrap
VERSION 2.00 Begin Form Form4 BackColor = &H00E0FFFF& Caption = "File Browser" ClientHeight = 4470 ClientLeft = 1350 ClientTop = 1740 ClientWidth = 5775 ControlBox = 0 'False Height = 4875 Left = 1290 LinkMode = 1 'Source LinkTopic = "Form4" MaxButton = 0 'False MinButton = 0 'False ScaleHeight = 4470 ScaleWidth = 5775 Top = 1395 Width = 5895 Begin Frame Frame1 Height = 4095 Left = 240 TabIndex = 0 Top = 240 Width = 5535 Begin CommandButton Command2 Caption = "Cancel" Height = 495 Left = 2280 TabIndex = 5 Top = 3480 Width = 855 End Begin DirListBox Dir1 Height = 1815 Left = 120 TabIndex = 2 Top = 600 Width = 2535 End Begin FileListBox File1 Height = 2175 Left = 2880 TabIndex = 3 Top = 240 Width = 2535 End Begin DriveListBox Drive1 Height = 315 Left = 120 TabIndex = 1 Top = 240 Width = 2535 End Begin Label Label1 BorderStyle = 1 'Fixed Single Caption = "Double-click the filename (right hand box) that you want to be used when your program is run. Remember, it must be the file that Window's Program Manager Uses and it must end in PIF, EXE, COM, or BAT." Height = 855 Left = 120 TabIndex = 4 Top = 2520 Width = 5295 End End ' user has chosen to cancel choice of filename Sub Command2_Click () RUNFILENAME$ = "" 'clear global Unload form4 'unload file from memory form1.petname.SetFocus 'set focus to form1 End Sub Sub Dir1_Change () file1.path = dir1.path End Sub Sub Drive1_Change () dir1.path = drive1.drive End Sub ' user selects the filename that they want to use Sub File1_DblClick () If Right$(file1.path, 1) = "\" Then RUNFILENAME$ = file1.path + file1.filename Else RUNFILENAME$ = file1.path + "\" + file1.filename End If form1.filenamelabel.caption = RUNFILENAME$ + String$(50, " ") Unload form4 'unload from memory form1.commandlinename.SetFocus 'focust to form1 End Sub