home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Unleashed / Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso / source / chap16 / dlgrun2 / frmscaff.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-07-12  |  1.3 KB  |  48 lines

  1. VERSION 4.00
  2. Begin VB.Form frmScaffold 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   4140
  5.    ClientLeft      =   1140
  6.    ClientTop       =   1515
  7.    ClientWidth     =   6690
  8.    Height          =   4545
  9.    Left            =   1080
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4140
  12.    ScaleWidth      =   6690
  13.    Top             =   1170
  14.    Width           =   6810
  15.    Begin VB.CommandButton cmdUnload 
  16.       Caption         =   "Command1"
  17.       Height          =   795
  18.       Left            =   420
  19.       TabIndex        =   1
  20.       Top             =   1680
  21.       Width           =   2055
  22.    End
  23.    Begin VB.CommandButton cmdRun 
  24.       Caption         =   "&Run"
  25.       Height          =   735
  26.       Left            =   480
  27.       TabIndex        =   0
  28.       Top             =   660
  29.       Width           =   1875
  30.    End
  31. Attribute VB_Name = "frmScaffold"
  32. Attribute VB_Creatable = False
  33. Attribute VB_Exposed = False
  34. Option Explicit
  35. Dim obj As New RunClass
  36. Private Sub cmdRun_Click()
  37.     Dim success As Variant
  38.     success = obj.Run
  39.     MsgBox obj.CommandLine
  40.     success = obj.Execute
  41. End Sub
  42. Private Sub cmdUnload_Click()
  43.     Unload Me
  44. End Sub
  45. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
  46.     Set obj = Nothing
  47. End Sub
  48.