home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "Thing Demo"
- ClientHeight = 2490
- ClientLeft = 1140
- ClientTop = 1515
- ClientWidth = 4215
- Height = 2895
- Left = 1080
- LinkTopic = "Form1"
- ScaleHeight = 2490
- ScaleWidth = 4215
- Top = 1170
- Width = 4335
- Begin VB.CommandButton Command4
- Caption = "Temporary Thing"
- Height = 375
- Left = 360
- TabIndex = 3
- Top = 1710
- Width = 3435
- End
- Begin VB.CommandButton Command3
- Caption = "New Form Thing"
- Height = 375
- Left = 360
- TabIndex = 2
- Top = 1170
- Width = 3435
- End
- Begin VB.CommandButton Command2
- Caption = "Reverse Form Thing's Name"
- Height = 375
- Left = 360
- TabIndex = 1
- Top = 720
- Width = 3435
- End
- Begin VB.CommandButton Command1
- Caption = "Show the Form Thing"
- Height = 375
- Left = 360
- TabIndex = 0
- Top = 270
- Width = 3435
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Public thForm As New Thing
- Private Sub Command1_Click()
- MsgBox "Name: " & thForm.Name & Chr$(13) & Chr$(10) _
- & "Created: " & thForm.Created, , "Form Thing"
- End Sub
- Private Sub Command2_Click()
- thForm.ReverseName
- Command1.Value = True
- End Sub
- Private Sub Command3_Click()
- Set thForm = Nothing
- thForm.Name = InputBox("Enter a name for the New Form Thing")
- End Sub
- Private Sub Command4_Click()
- Dim thTemp As New Thing
- thTemp.Name = InputBox("Enter a name for the Temporary Thing")
- End Sub
- Private Sub Form_Load()
- thForm.Name = InputBox("Enter a name for the Form Thing")
- End Sub
-