form1.frm

来自「我学习vb时候用的课件」· FRM 代码 · 共 76 行

FRM
76
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3150
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5205
   LinkTopic       =   "Form1"
   ScaleHeight     =   3150
   ScaleWidth      =   5205
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "Command2"
      Height          =   495
      Left            =   3480
      TabIndex        =   4
      Top             =   2520
      Width           =   735
   End
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   495
      Left            =   1680
      TabIndex        =   3
      Top             =   2400
      Width           =   735
   End
   Begin VB.TextBox Text2 
      Height          =   615
      Left            =   2640
      TabIndex        =   1
      Text            =   "Text2"
      Top             =   600
      Width           =   855
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   840
      TabIndex        =   0
      Text            =   "Text1"
      Top             =   600
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "+"
      Height          =   495
      Left            =   1920
      TabIndex        =   2
      Top             =   600
      Width           =   615
   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()
a = Text1.Text + Text2.Text
End Sub

Private Sub Command2_Click()
Form2.Show
End Sub

Private Sub Text1_Change()
Form2.Text1.Text = Form1.Text1.Text

End Sub

Private Sub Text2_Change()
Form2.Text2.Text = Form1.Text2.Text
End Sub

⌨️ 快捷键说明

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