home *** CD-ROM | disk | FTP | other *** search
/ Dan Appleman's Visual Bas…s Guide to the Win32 API / Dan.Applmans.Visual.Basic.5.0.Programmers.Guide.To.The.Win32.API.1997.Ziff-Davis.Press.CD / VB5PG32.mdf / vbpg32 / samples5 / ch14 / frmcnt.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-02-16  |  1.1 KB  |  43 lines

  1. VERSION 5.00
  2. Begin VB.Form frmCnt 
  3.    Caption         =   "Counter"
  4.    ClientHeight    =   1680
  5.    ClientLeft      =   1095
  6.    ClientTop       =   1515
  7.    ClientWidth     =   3405
  8.    LinkTopic       =   "Form1"
  9.    PaletteMode     =   1  'UseZOrder
  10.    ScaleHeight     =   1680
  11.    ScaleWidth      =   3405
  12.    Begin VB.CommandButton Command1 
  13.       Caption         =   "Count"
  14.       Height          =   435
  15.       Left            =   1860
  16.       TabIndex        =   1
  17.       Top             =   540
  18.       Width           =   1215
  19.    End
  20.    Begin VB.Label Label1 
  21.       Caption         =   "Label1"
  22.       Height          =   315
  23.       Left            =   420
  24.       TabIndex        =   0
  25.       Top             =   600
  26.       Width           =   1215
  27.    End
  28. Attribute VB_Name = "frmCnt"
  29. Attribute VB_GlobalNameSpace = False
  30. Attribute VB_Creatable = False
  31. Attribute VB_PredeclaredId = True
  32. Attribute VB_Exposed = False
  33. Option Explicit
  34. ' Copyright 
  35.  1997 by Desaware Inc. All Rights Reserved
  36. Private Sub Command1_Click()
  37.     Dim cnt&
  38.     For cnt& = 1 To 2500
  39.         Label1.Caption = cnt&
  40.         Label1.Refresh
  41.     Next cnt&
  42. End Sub
  43.