home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- BackColor = &H00C0C0C0&
- Caption = "Form Handling"
- ClientHeight = 4590
- ClientLeft = 165
- ClientTop = 450
- ClientWidth = 6195
- LinkTopic = "Form1"
- ScaleHeight = 4590
- ScaleWidth = 6195
- StartUpPosition = 3 'Windows Default
- Begin VB.CheckBox Form3Modal
- Caption = "Show Modal"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 3675
- TabIndex = 13
- Top = 960
- Width = 1455
- End
- Begin VB.CheckBox Form2Modal
- Caption = "Show Modal"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 630
- TabIndex = 12
- Top = 930
- Width = 1455
- End
- Begin VB.CommandButton LoadForm3
- Caption = "Load Form3"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3675
- TabIndex = 11
- Top = 480
- Width = 1935
- End
- Begin VB.CommandButton LoadForm2
- Caption = "Load Form2"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 615
- TabIndex = 10
- Top = 450
- Width = 1935
- End
- Begin VB.Frame Frame2
- Caption = "Properties and Methods"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2055
- Left = 3405
- TabIndex = 6
- Top = 2160
- Width = 2475
- Begin VB.CommandButton Form3Color
- Caption = "Background Color"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 240
- TabIndex = 9
- Top = 360
- Width = 1995
- End
- Begin VB.CommandButton Form3Caption
- Caption = "Form's Caption"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 240
- TabIndex = 8
- Top = 960
- Width = 1995
- End
- Begin VB.CommandButton HideForm3
- Caption = "Hide Form"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 240
- TabIndex = 7
- Top = 1560
- Width = 1965
- End
- End
- Begin VB.Frame Frame1
- Caption = "Properties and Methods"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 2055
- Left = 240
- TabIndex = 2
- Top = 2160
- Width = 2700
- Begin VB.CommandButton HideForm2
- Caption = "Hide Form"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 465
- TabIndex = 5
- Top = 1575
- Width = 1875
- End
- Begin VB.CommandButton Form2Caption
- Caption = "Form's Caption"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 465
- TabIndex = 4
- Top = 975
- Width = 1890
- End
- Begin VB.CommandButton Form2Color
- Caption = "Background Color"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 465
- TabIndex = 3
- Top = 375
- Width = 1875
- End
- End
- Begin VB.CommandButton ShowForm3
- Caption = "Show Form3"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 3675
- TabIndex = 1
- Top = 1320
- Width = 1935
- End
- Begin VB.CommandButton ShowForm2
- Caption = "Show Form2"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 375
- Left = 615
- TabIndex = 0
- Top = 1290
- Width = 1935
- End
- Begin VB.Frame Frame3
- BackColor = &H00C0C0C0&
- Caption = "Form2"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 4215
- Left = 120
- TabIndex = 14
- Top = 120
- Width = 2985
- End
- Begin VB.Frame Frame4
- Caption = "Form3"
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 9.75
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 4215
- Left = 3255
- TabIndex = 15
- Top = 120
- Width = 2760
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub ShowForm2_Click()
- Form2.Show Form2Modal.Value
- End Sub
- Private Sub LoadForm3_Click()
- If Form3Modal.Caption = "Load Form3" Then
- Load Form3
- LoadForm3.Caption = "Unload Form3"
- Else
- Unload Form3
- LoadForm3.Caption = "Load Form3"
- End If
- End Sub
- Private Sub ShowForm3_Click()
- Form3.Show Form3Modal.Value
- End Sub
- Private Sub Form2Color_Click()
- Form2.BackColor = QBColor(Rnd() * 15)
- End Sub
- Private Sub Form2Caption_Click()
- Form2.Caption = "Caption changed!"
- End Sub
- Private Sub HideForm2_Click()
- Form2.Hide
- End Sub
- Private Sub HideForm3_Click()
- Form3.Hide
- End Sub
- Private Sub Form3Caption_Click()
- Form3.Caption = "New Caption!"
- End Sub
- Private Sub Form3Color_Click()
- Form3.BackColor = QBColor(Rnd() * 15)
- End Sub
- Private Sub LoadForm2_Click()
- If LoadForm2.Caption = "Load Form2" Then
- Load Form2
- LoadForm2.Caption = "Unload Form2"
- Else
- Unload Form2
- LoadForm2.Caption = "Load Form2"
- End If
- End Sub
- Private Sub LoadForm_Click()
- End Sub
-