home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / PVb5.0 / VB / SAMPLES / PGUIDE / OPTIMIZE / FRMSHOW1.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-01-22  |  2.1 KB  |  72 lines

  1. VERSION 5.00
  2. Begin VB.Form frmShow1 
  3.    Caption         =   "Form1"
  4.    ClientHeight    =   1425
  5.    ClientLeft      =   1755
  6.    ClientTop       =   2130
  7.    ClientWidth     =   4140
  8.    ForeColor       =   &H80000008&
  9.    LinkTopic       =   "Form1"
  10.    PaletteMode     =   1  'UseZOrder
  11.    ScaleHeight     =   1425
  12.    ScaleWidth      =   4140
  13.    Begin VB.TextBox txtFooValue 
  14.       Appearance      =   0  'Flat
  15.       Height          =   450
  16.       Left            =   2310
  17.       TabIndex        =   1
  18.       Top             =   420
  19.       Width           =   1575
  20.    End
  21.    Begin VB.CommandButton cmd 
  22.       Appearance      =   0  'Flat
  23.       BackColor       =   &H80000005&
  24.       Caption         =   "
  25.  Foo"
  26.       Height          =   645
  27.       Left            =   240
  28.       TabIndex        =   0
  29.       Top             =   315
  30.       Width           =   1695
  31.    End
  32.    Begin VB.Label Label1 
  33.       Appearance      =   0  'Flat
  34.       AutoSize        =   -1  'True
  35.       BackColor       =   &H80000005&
  36.       BackStyle       =   0  'Transparent
  37.       Caption         =   "="
  38.       BeginProperty Font 
  39.          Name            =   "
  40.          Size            =   13.5
  41.          Charset         =   134
  42.          Weight          =   700
  43.          Underline       =   0   'False
  44.          Italic          =   0   'False
  45.          Strikethrough   =   0   'False
  46.       EndProperty
  47.       ForeColor       =   &H00800000&
  48.       Height          =   360
  49.       Left            =   2010
  50.       TabIndex        =   2
  51.       Top             =   435
  52.       Width           =   195
  53.    End
  54. Attribute VB_Name = "frmShow1"
  55. Attribute VB_GlobalNameSpace = False
  56. Attribute VB_Creatable = False
  57. Attribute VB_PredeclaredId = True
  58. Attribute VB_Exposed = False
  59. Option Explicit
  60. Dim iFoo As Integer
  61. Private Sub cmd_Click()
  62.   iFoo = Val(txtFooValue)
  63.   frmShow2.lblStatus.Caption = "Form1.CMD 
  64.  iFoo = " & Str$(iFoo)
  65. End Sub
  66. Private Sub Form_Load()
  67.   Me.Left = frmExplore.Width + 600
  68.   Me.Top = (Screen.Height - Me.Height) * 0.3
  69.   txtFooValue = Str$(iFoo)
  70.   frmShow2.lblStatus.Caption = "Form1_Load iFoo = " & Str$(iFoo)
  71. End Sub
  72.