来自「Visual Basic中,对于文本比较好的处理方式.」· 代码 · 共 123 行

TXT
123
字号
VERSION 5.00
Begin VB.Form Form2 
   Caption         =   "输入参数"
   ClientHeight    =   2310
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form2"
   ScaleHeight     =   2310
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text23 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   390
      Left            =   1875
      TabIndex        =   3
      Top             =   1575
      Width           =   990
   End
   Begin VB.CommandButton Command21 
      Caption         =   "返回"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3225
      TabIndex        =   6
      Top             =   900
      Width           =   1095
   End
   Begin VB.TextBox Text22 
      Height          =   375
      Left            =   1875
      TabIndex        =   1
      Top             =   900
      Width           =   975
   End
   Begin VB.TextBox Text21 
      Height          =   375
      Left            =   1875
      TabIndex        =   0
      Top             =   300
      Width           =   975
   End
   Begin VB.Label Label3 
      Caption         =   "圆半径R"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   240
      Left            =   825
      TabIndex        =   5
      Top             =   1725
      Width           =   765
   End
   Begin VB.Label Label2 
      Caption         =   "圆心坐标Y"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   750
      TabIndex        =   4
      Top             =   975
      Width           =   1065
   End
   Begin VB.Label Label1 
      Caption         =   "圆心坐标X"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      Left            =   750
      TabIndex        =   2
      Top             =   375
      Width           =   1065
   End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command21_Click()    '“输入参数”窗体的“返回”按钮
    X = Val(Text21.Text)
    Y = Val(Text22.Text)
    R = Val(Text23.Text)
    Form2.Hide                   '隐藏“输入参数”窗体
    Form1.Show                   '显示主窗体
End Sub

⌨️ 快捷键说明

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