home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Visual Database / Visual BASIC 5.0 (Ent. Edition) / Vb5ent Extractor.EXE / VB / SAMPLES / PGUIDE / OPTIMIZE / FRMIMAGE.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-09-16  |  4.7 KB  |  157 lines

  1. VERSION 5.00
  2. Begin VB.Form frmImages 
  3.    AutoRedraw      =   -1  'True
  4.    Caption         =   "Image Controls"
  5.    ClientHeight    =   3810
  6.    ClientLeft      =   7035
  7.    ClientTop       =   1755
  8.    ClientWidth     =   4320
  9.    ClipControls    =   0   'False
  10.    BeginProperty Font 
  11.       Name            =   "MS Sans Serif"
  12.       Size            =   8.25
  13.       Charset         =   0
  14.       Weight          =   700
  15.       Underline       =   0   'False
  16.       Italic          =   0   'False
  17.       Strikethrough   =   0   'False
  18.    EndProperty
  19.    ForeColor       =   &H80000008&
  20.    LinkTopic       =   "Form5"
  21.    PaletteMode     =   1  'UseZOrder
  22.    ScaleHeight     =   3810
  23.    ScaleWidth      =   4320
  24.    Tag             =   "Apparent"
  25.    WhatsThisHelp   =   -1  'True
  26.    Begin VB.CommandButton cmdExit 
  27.       Caption         =   "E&xit"
  28.       Default         =   -1  'True
  29.       BeginProperty Font 
  30.          Name            =   "MS Sans Serif"
  31.          Size            =   8.25
  32.          Charset         =   0
  33.          Weight          =   400
  34.          Underline       =   0   'False
  35.          Italic          =   0   'False
  36.          Strikethrough   =   0   'False
  37.       EndProperty
  38.       Height          =   495
  39.       Left            =   1545
  40.       TabIndex        =   0
  41.       Top             =   3240
  42.       Width           =   1215
  43.    End
  44.    Begin VB.Image Image1 
  45.       Appearance      =   0  'Flat
  46.       Height          =   480
  47.       Index           =   9
  48.       Left            =   840
  49.       Picture         =   "frmimage.frx":0000
  50.       Top             =   360
  51.       Width           =   480
  52.    End
  53.    Begin VB.Image Image1 
  54.       Appearance      =   0  'Flat
  55.       Height          =   480
  56.       Index           =   8
  57.       Left            =   1680
  58.       Picture         =   "frmimage.frx":030A
  59.       Top             =   600
  60.       Width           =   480
  61.    End
  62.    Begin VB.Image Image1 
  63.       Appearance      =   0  'Flat
  64.       Height          =   480
  65.       Index           =   7
  66.       Left            =   330
  67.       Picture         =   "frmimage.frx":0614
  68.       Top             =   2040
  69.       Width           =   480
  70.    End
  71.    Begin VB.Image Image1 
  72.       Appearance      =   0  'Flat
  73.       Height          =   480
  74.       Index           =   6
  75.       Left            =   600
  76.       Picture         =   "frmimage.frx":091E
  77.       Top             =   1320
  78.       Width           =   480
  79.    End
  80.    Begin VB.Image Image1 
  81.       Appearance      =   0  'Flat
  82.       Height          =   480
  83.       Index           =   5
  84.       Left            =   1470
  85.       Picture         =   "frmimage.frx":0C28
  86.       Top             =   1740
  87.       Width           =   480
  88.    End
  89.    Begin VB.Image Image1 
  90.       Appearance      =   0  'Flat
  91.       Height          =   480
  92.       Index           =   4
  93.       Left            =   2235
  94.       Picture         =   "frmimage.frx":0F32
  95.       Top             =   1245
  96.       Width           =   480
  97.    End
  98.    Begin VB.Image Image1 
  99.       Appearance      =   0  'Flat
  100.       Height          =   480
  101.       Index           =   3
  102.       Left            =   3075
  103.       Picture         =   "frmimage.frx":123C
  104.       Top             =   450
  105.       Width           =   480
  106.    End
  107.    Begin VB.Image Image1 
  108.       Appearance      =   0  'Flat
  109.       Height          =   480
  110.       Index           =   2
  111.       Left            =   1200
  112.       Picture         =   "frmimage.frx":1546
  113.       Top             =   2520
  114.       Width           =   480
  115.    End
  116.    Begin VB.Image Image1 
  117.       Appearance      =   0  'Flat
  118.       Height          =   480
  119.       Index           =   1
  120.       Left            =   2400
  121.       Picture         =   "frmimage.frx":1850
  122.       Top             =   2520
  123.       Width           =   480
  124.    End
  125.    Begin VB.Image Image1 
  126.       Appearance      =   0  'Flat
  127.       Height          =   480
  128.       Index           =   0
  129.       Left            =   3120
  130.       Picture         =   "frmimage.frx":1B5A
  131.       Top             =   1680
  132.       Width           =   480
  133.    End
  134. Attribute VB_Name = "frmImages"
  135. Attribute VB_GlobalNameSpace = False
  136. Attribute VB_Creatable = False
  137. Attribute VB_TemplateDerived = False
  138. Attribute VB_PredeclaredId = True
  139. Attribute VB_Exposed = False
  140. Private Sub cmdExit_Click()
  141.   Unload Me
  142. End Sub
  143. Private Sub Form_Load()
  144.   PosForm Me
  145.   Me.Show
  146.   ScrambleDisks
  147. End Sub
  148. Private Sub ScrambleDisks()
  149.   iMaxWidth = Me.ScaleWidth - Image1(0).Width + 1
  150.   iMaxHeight = Me.ScaleWidth - Image1(0).Height + 1
  151.   For iCounter = 1 To 5
  152.     For iDiskImage = 0 To 9
  153.       Image1(iDiskImage).Move Int(iMaxWidth * Rnd), Int(iMaxHeight * Rnd)
  154.     Next iDiskImage
  155.   Next iCounter
  156. End Sub
  157.