home *** CD-ROM | disk | FTP | other *** search
/ Using Visual Basic 5 (Platinum Edition) / vb5.iso / Code / ch21 / Form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-06-30  |  3.2 KB  |  112 lines

  1. VERSION 5.00
  2. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
  3. Begin VB.Form Form1 
  4.    BorderStyle     =   3  'Fixed Dialog
  5.    Caption         =   "Form1"
  6.    ClientHeight    =   3195
  7.    ClientLeft      =   150
  8.    ClientTop       =   720
  9.    ClientWidth     =   4680
  10.    LinkTopic       =   "Form1"
  11.    MaxButton       =   0   'False
  12.    MinButton       =   0   'False
  13.    ScaleHeight     =   3195
  14.    ScaleWidth      =   4680
  15.    ShowInTaskbar   =   0   'False
  16.    StartUpPosition =   3  'Windows Default
  17.    WhatsThisButton =   -1  'True
  18.    WhatsThisHelp   =   -1  'True
  19.    Begin VB.CommandButton cmdClose 
  20.       Caption         =   "Close"
  21.       Height          =   375
  22.       Left            =   2760
  23.       TabIndex        =   3
  24.       Top             =   2640
  25.       Width           =   1695
  26.    End
  27.    Begin VB.TextBox txtInput 
  28.       Height          =   375
  29.       Left            =   720
  30.       TabIndex        =   2
  31.       Text            =   "Text1"
  32.       Top             =   480
  33.       WhatsThisHelpID =   4
  34.       Width           =   2295
  35.    End
  36.    Begin MSComDlg.CommonDialog CommonDlg 
  37.       Left            =   840
  38.       Top             =   1680
  39.       _ExtentX        =   847
  40.       _ExtentY        =   847
  41.       _Version        =   327680
  42.       HelpFile        =   "c:\temp\usdemo.hlp"
  43.    End
  44.    Begin VB.CommandButton cmdHelp 
  45.       Caption         =   "Help"
  46.       Height          =   375
  47.       Left            =   2760
  48.       TabIndex        =   1
  49.       Top             =   1680
  50.       Width           =   1695
  51.    End
  52.    Begin VB.CommandButton cmdMessage 
  53.       Caption         =   "MsgBox Help"
  54.       Height          =   375
  55.       HelpContextID   =   3
  56.       Left            =   2760
  57.       TabIndex        =   0
  58.       ToolTipText     =   "This is a tip"
  59.       Top             =   2160
  60.       WhatsThisHelpID =   4
  61.       Width           =   1695
  62.    End
  63.    Begin VB.Menu mnuHelp 
  64.       Caption         =   "&Help"
  65.       Begin VB.Menu mnuDemo 
  66.          Caption         =   "Demo Help"
  67.          Shortcut        =   {F1}
  68.       End
  69.       Begin VB.Menu sep1 
  70.          Caption         =   "-"
  71.       End
  72.       Begin VB.Menu mnuContents 
  73.          Caption         =   "&Contents and Index"
  74.       End
  75.       Begin VB.Menu mnuThis 
  76.          Caption         =   "Whats &This?"
  77.          Shortcut        =   +{F1}
  78.       End
  79.       Begin VB.Menu sep2 
  80.          Caption         =   "-"
  81.       End
  82.       Begin VB.Menu mnuabout 
  83.          Caption         =   "&About the Demo"
  84.       End
  85.    End
  86. Attribute VB_Name = "Form1"
  87. Attribute VB_GlobalNameSpace = False
  88. Attribute VB_Creatable = False
  89. Attribute VB_PredeclaredId = True
  90. Attribute VB_Exposed = False
  91. Const HelpFinder = &HB
  92. Private Sub cmdClose_Click()
  93. End Sub
  94. Private Sub cmdHelp_Click()
  95. 'CommonDlg.HelpContext = 4
  96. CommonDlg.HelpCommand = HelpFinder
  97. CommonDlg.ShowHelp
  98. End Sub
  99. Private Sub cmdMessage_Click()
  100. MsgBox "this is a help demo", vbCritical + vbMsgBoxHelpButton, "Demo", "c:\temp\usdemo.hlp", 3
  101. End Sub
  102. Private Sub Form_Load()
  103. End Sub
  104. Private Sub mnuContents_Click()
  105. CommonDlg.HelpCommand = cdlHelpContents
  106. CommonDlg.ShowHelp
  107. End Sub
  108. Private Sub mnuDemo_Click()
  109. CommonDlg.HelpCommand = HelpFinder
  110. CommonDlg.ShowHelp
  111. End Sub
  112.