f1-1.frm

来自「VB课程教学的讲义源的代码」· FRM 代码 · 共 62 行

FRM
62
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "例题1-1"
   ClientHeight    =   3225
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   6525
   LinkTopic       =   "Form1"
   ScaleHeight     =   3225
   ScaleWidth      =   6525
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text1 
      Alignment       =   2  'Center
      Height          =   1095
      Left            =   240
      TabIndex        =   2
      Top             =   480
      Width           =   6015
   End
   Begin VB.CommandButton Command2 
      BackColor       =   &H0080FFFF&
      Caption         =   "隐藏(&H)"
      Height          =   495
      Left            =   3840
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   2160
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H0080FFFF&
      Caption         =   "显示(&D)"
      Height          =   495
      Left            =   1320
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   2160
      Width           =   1455
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
    Text1.Text = "但愿人长久,千里共婵娟。"
End Sub

Private Sub Command2_Click()
    Text1.Text = ""
End Sub

Private Sub Form_Load()
    Text1.FontName = "华文彩云"
    Text1.ForeColor = &HFF80FF
    Text1.FontSize = 24
    
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?