VERSION 5.00
Begin VB.Form Form1 
   BackColor       =   &H00E0E0E0&
   Caption         =   "趣味文本"
   ClientHeight    =   2625
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   5370
   Icon            =   "Form1.frx":0000
   LinkTopic       =   "Form1"
   ScaleHeight     =   2625
   ScaleWidth      =   5370
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command6 
      Caption         =   "退出"
      Height          =   495
      Left            =   4560
      TabIndex        =   7
      Top             =   1920
      Width           =   615
   End
   Begin VB.CommandButton Command5 
      Caption         =   "设置口令"
      Height          =   495
      Left            =   3480
      TabIndex        =   6
      Top             =   1920
      Width           =   975
   End
   Begin VB.CommandButton Command3 
      Caption         =   "文本互换"
      Height          =   495
      Left            =   2400
      TabIndex        =   5
      Top             =   1920
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "文字颜色"
      Height          =   495
      Left            =   1320
      TabIndex        =   4
      Top             =   1920
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "文字外观"
      Height          =   495
      Left            =   120
      TabIndex        =   3
      Top             =   1920
      Width           =   1095
   End
   Begin VB.TextBox Text2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   975
      Left            =   2640
      MultiLine       =   -1  'True
      ScrollBars      =   3  'Both
      TabIndex        =   2
      Text            =   "Form1.frx":0ABA
      Top             =   720
      Width           =   2415
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   975
      Left            =   120
      MultiLine       =   -1  'True
      ScrollBars      =   1  'Horizontal
      TabIndex        =   1
      Text            =   "Form1.frx":0B79
      Top             =   720
      Width           =   2295
   End
   Begin VB.Label Label1 
      BackColor       =   &H0000FFFF&
      Caption         =   "趣 味 文 本"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   375
      Left            =   1440
      TabIndex        =   0
      Top             =   120
      Width           =   2055
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Rem 改变文字外观
Private Sub Command1_Click()
  Text1.FontName = "楷体_GB2312" '设置Text1文本框的字体为楷体
  Text1.FontSize = 16            '设置Text1文本框的字大小为26
  Text1.FontBold = True          '设置Text1文本框的字为粗体
  Text2.FontName = "隶书"        '设置Text1文本框的字体为隶书
  Text2.FontSize = 16            '设置Text1文本框的字大小为26
  Text2.FontItalic = True        '设置Text2文本框的字为斜体
  Text1.PasswordChar = ""        '设置Text1文本框为普通文本框
End Sub
Rem 改变文字颜色
Private Sub Command2_Click()
  Text1.BackColor = RGB(255, 0, 0)  '设置Text1文本框的背景色为蓝色
  Text2.BackColor = vbGreen     '设置Text2文本框的背景色为绿色
  Text1.ForeColor = &HFFFFFF  '设置Text1文本框的文字色为白色
  Text2.ForeColor = QBColor(1) '设置Text2文本框的文字色为蓝色
End Sub
Rem 文本内容互换
Private Sub Command3_Click()
   WZ = Text1.Text           '将Text1文本框中内容赋给变量WZ
   Text1.Text = Text2.Text   '将Text2文本框中内容赋给Text1文本框
   Text2.Text = WZ  '将WZ内容（原Text1文本框内容）赋给Text4文本框
End Sub
Rem  设置口令文本
Private Sub Command5_Click()
  Text1.PasswordChar = "*"      '使Text1文本框成为口令文本框
End Sub
Private Sub Command6_Click()
  End                         '退出运行的程序
End Sub

