home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Unleashed / Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso / source / chap19 / form1.frm (.txt) next >
Encoding:
Visual Basic Form  |  1995-07-09  |  1.4 KB  |  48 lines

  1. VERSION 4.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "MyCompany"
  4.    ClientHeight    =   4140
  5.    ClientLeft      =   3120
  6.    ClientTop       =   1935
  7.    ClientWidth     =   4365
  8.    Height          =   4545
  9.    Left            =   3060
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   4140
  12.    ScaleWidth      =   4365
  13.    Top             =   1590
  14.    Width           =   4485
  15.    Begin VB.CommandButton Command2 
  16.       Caption         =   "Hide CopyRight"
  17.       Height          =   375
  18.       Left            =   840
  19.       TabIndex        =   1
  20.       Top             =   960
  21.       Width           =   2535
  22.    End
  23.    Begin VB.CommandButton Command1 
  24.       Caption         =   "Show CopyRight"
  25.       Height          =   375
  26.       Left            =   840
  27.       TabIndex        =   0
  28.       Top             =   360
  29.       Width           =   2535
  30.    End
  31. Attribute VB_Name = "Form1"
  32. Attribute VB_Creatable = False
  33. Attribute VB_Exposed = False
  34. Option Explicit
  35. Private MyRights As New CopyR
  36. Private Sub Command1_Click()
  37.     Form2.BackColor = vbBlue
  38.     Form2.Text1.BackColor = vbYellow
  39.     Form2.Text1.TEXT = "All rights reserved by " & MyRights.Msg1 & Chr(169) & vbCrLf & MyRights.Copy_Date & vbCrLf & MyRights.Legal
  40.     Form2.Visible = True
  41. End Sub
  42. Private Sub Command2_Click()
  43.     Form2.Hide
  44. End Sub
  45. Private Sub Form_Load()
  46.     MyRights.Msg1 = InputBox("Enter your name")
  47. End Sub
  48.