home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Form1"
- ClientHeight = 2775
- ClientLeft = 1710
- ClientTop = 1935
- ClientWidth = 4275
- Height = 3180
- Left = 1650
- LinkTopic = "Form1"
- ScaleHeight = 2775
- ScaleWidth = 4275
- Top = 1590
- Width = 4395
- Begin CommandButton Command4
- Caption = "4"
- Height = 252
- Left = 1200
- TabIndex = 6
- Top = 2475
- Width = 372
- End
- Begin PictureBox Panel3D3
- BackColor = &H000000FF&
- Height = 1000
- Left = 0
- ScaleHeight = 975
- ScaleWidth = 975
- TabIndex = 0
- Top = 0
- Width = 1000
- End
- Begin PictureBox Panel3D2
- BackColor = &H000000FF&
- Height = 1000
- Left = 0
- ScaleHeight = 975
- ScaleWidth = 975
- TabIndex = 4
- Top = 0
- Width = 1000
- End
- Begin CommandButton Command3
- Caption = "3"
- Height = 252
- Left = 840
- TabIndex = 3
- Top = 2475
- Width = 372
- End
- Begin CommandButton Command2
- Caption = "2"
- Height = 252
- Left = 480
- TabIndex = 2
- Top = 2475
- Width = 372
- End
- Begin CommandButton Command1
- Caption = "1"
- Height = 252
- Left = 120
- TabIndex = 1
- Top = 2475
- Width = 372
- End
- Begin PictureBox Panel3D1
- BackColor = &H000000FF&
- Height = 1000
- Left = 0
- ScaleHeight = 975
- ScaleWidth = 975
- TabIndex = 5
- Top = 0
- Width = 1000
- End
- Option Explicit
- Sub Form_Resize ()
- ' Scale this panel's width according to the size
- ' of the form and place it along the bottom of
- ' form.
- Panel3D1.Width = ScaleWidth - Panel3D1.Left
- Panel3D1.Top = ScaleHeight - 372
- ' Place this 2 controls along the bottom right of
- ' the form when resized.
- Panel3D2.Left = ScaleWidth - 2075
- Panel3D2.Top = ScaleHeight - 310
- Panel3D3.Left = ScaleWidth - 1095
- Panel3D3.Top = ScaleHeight - 310
- ' Place this 4 controls at bottom left of the
- ' form when resized.
- Command1.Top = ScaleHeight - 300
- Command2.Top = ScaleHeight - 300
- Command3.Top = ScaleHeight - 300
- Command4.Top = ScaleHeight - 300
- ' Place the form center of screen when resized,
- ' but this procedure will not execute, if form
- ' is minimized or maximized.
- If WindowState = 0 Then
- Move (Screen.Width - Form1.Width) / 2, (Screen.Height - Form1.Height) / 2
- End If
- End Sub
-