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 / samples4 / ch14 / frmcnt.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1997-02-16  |  1.1 KB  |  44 lines

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