home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / PROGRAMS / CH3 / 3-4-6.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-11-02  |  1.8 KB  |  64 lines

  1. VERSION 5.00
  2. Begin VB.Form frm3_4_6 
  3.    Caption         =   "Convertor"
  4.    ClientHeight    =   1305
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1485
  7.    ClientWidth     =   3075
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   8.25
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    PaletteMode     =   1  'UseZOrder
  19.    ScaleHeight     =   1305
  20.    ScaleWidth      =   3075
  21.    Begin VB.TextBox txtMile 
  22.       Height          =   285
  23.       Left            =   1200
  24.       TabIndex        =   1
  25.       Text            =   "0"
  26.       Top             =   240
  27.       Width           =   1575
  28.    End
  29.    Begin VB.TextBox txtFurlong 
  30.       Height          =   285
  31.       Left            =   1200
  32.       TabIndex        =   0
  33.       Text            =   "0"
  34.       Top             =   840
  35.       Width           =   1575
  36.    End
  37.    Begin VB.Label lblFurlong 
  38.       Caption         =   "Furlongs"
  39.       Height          =   255
  40.       Left            =   240
  41.       TabIndex        =   3
  42.       Top             =   840
  43.       Width           =   735
  44.    End
  45.    Begin VB.Label lblMile 
  46.       Caption         =   "Miles"
  47.       Height          =   252
  48.       Left            =   600
  49.       TabIndex        =   2
  50.       Top             =   240
  51.       Width           =   492
  52.    End
  53. Attribute VB_Name = "frm3_4_6"
  54. Attribute VB_GlobalNameSpace = False
  55. Attribute VB_Creatable = False
  56. Attribute VB_PredeclaredId = True
  57. Attribute VB_Exposed = False
  58. Private Sub txtMile_LostFocus()
  59.   txtFurlong.Text = Str(8 * Val(txtMile.Text))
  60. End Sub
  61. Private Sub txtFurlong_LostFocus()
  62.   txtMile.Text = Str(Val(txtFurlong.Text / 8))
  63. End Sub
  64.