home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Form1"
- ClientHeight = 2370
- ClientLeft = 1035
- ClientTop = 1485
- ClientWidth = 4380
- ClipControls = 0 'False
- Height = 2775
- Left = 975
- LinkTopic = "Form1"
- ScaleHeight = 2370
- ScaleWidth = 4380
- Top = 1140
- Width = 4500
- Begin CommandButton Command1
- Caption = "Command1"
- Height = 735
- Left = 960
- TabIndex = 0
- Top = 840
- Width = 2175
- End
- Option Explicit
- Sub Command1_Click ()
- Dim F As New Form1 ' Declare form variable
- F.Show ' Load and display new instance
- ' Move and color new instance
- F.Move Left + (Width \ 10), Top + (Height \ 10)
- F.BackColor = RGB(Rnd * 256, Rnd * 256, Rnd * 256)
- End Sub
- Sub Form_Load ()
- Randomize
- End Sub
-