home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / annotate / comments.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-07-10  |  2.5 KB  |  85 lines

  1. VERSION 5.00
  2. Begin VB.Form CommentsForm 
  3.    BorderStyle     =   4  'Fixed ToolWindow
  4.    Caption         =   "Enter Comments"
  5.    ClientHeight    =   2835
  6.    ClientLeft      =   45
  7.    ClientTop       =   285
  8.    ClientWidth     =   4425
  9.    LinkTopic       =   "Form2"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   2835
  13.    ScaleWidth      =   4425
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   3  'Windows Default
  16.    Begin VB.CommandButton bttnOK 
  17.       Caption         =   "O K"
  18.       BeginProperty Font 
  19.          Name            =   "Verdana"
  20.          Size            =   9.75
  21.          Charset         =   0
  22.          Weight          =   700
  23.          Underline       =   0   'False
  24.          Italic          =   0   'False
  25.          Strikethrough   =   0   'False
  26.       EndProperty
  27.       Height          =   450
  28.       Left            =   3000
  29.       TabIndex        =   2
  30.       Top             =   2280
  31.       Width           =   1320
  32.    End
  33.    Begin VB.CommandButton bttnCancel 
  34.       Caption         =   "CANCEL"
  35.       BeginProperty Font 
  36.          Name            =   "Verdana"
  37.          Size            =   9.75
  38.          Charset         =   0
  39.          Weight          =   700
  40.          Underline       =   0   'False
  41.          Italic          =   0   'False
  42.          Strikethrough   =   0   'False
  43.       EndProperty
  44.       Height          =   450
  45.       Left            =   120
  46.       TabIndex        =   1
  47.       Top             =   2265
  48.       Width           =   1320
  49.    End
  50.    Begin VB.TextBox Text1 
  51.       BackColor       =   &H0000FFFF&
  52.       BeginProperty Font 
  53.          Name            =   "Verdana"
  54.          Size            =   9
  55.          Charset         =   0
  56.          Weight          =   400
  57.          Underline       =   0   'False
  58.          Italic          =   0   'False
  59.          Strikethrough   =   0   'False
  60.       EndProperty
  61.       Height          =   2115
  62.       Left            =   15
  63.       MultiLine       =   -1  'True
  64.       TabIndex        =   0
  65.       Top             =   30
  66.       Width           =   4380
  67.    End
  68. Attribute VB_Name = "CommentsForm"
  69. Attribute VB_GlobalNameSpace = False
  70. Attribute VB_Creatable = False
  71. Attribute VB_PredeclaredId = True
  72. Attribute VB_Exposed = False
  73. Dim comment As String
  74. Private Sub bttnCancel_Click()
  75.     Text1.Text = comment
  76.     Form2.Hide
  77. End Sub
  78. Private Sub bttnOK_Click()
  79.     CommentsForm.Hide
  80. End Sub
  81. Private Sub Form_Activate()
  82.     comment = Text1.Text
  83.     Text1.SetFocus
  84. End Sub
  85.