⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 此文件包含5至6个用VB语言写的小程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text2 
      Height          =   615
      Left            =   1440
      TabIndex        =   3
      Top             =   2160
      Width           =   2655
   End
   Begin VB.CommandButton Command1 
      Caption         =   "开方"
      Default         =   -1  'True
      Height          =   615
      Left            =   1080
      TabIndex        =   2
      Top             =   1200
      Width           =   2415
   End
   Begin VB.TextBox Text1 
      Height          =   735
      Left            =   1440
      TabIndex        =   1
      Top             =   120
      Width           =   2175
   End
   Begin VB.Label Label2 
      Caption         =   "结果输出"
      Height          =   375
      Left            =   120
      TabIndex        =   4
      Top             =   2280
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "输入数"
      Height          =   495
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   855
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim x, s As Single
x = Text1.Text
If x > 0 Then
s = Sqr(x)
Text2.Text = s
Else
MsgBox "输入的数小于零"
End If
End Sub

⌨️ 快捷键说明

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