practice5_2.frm

来自「深圳大学的vb上机与教学的课件」· FRM 代码 · 共 44 行

FRM
44
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "单击窗体开始"
   ClientHeight    =   2775
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   15.75
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   2775
   ScaleWidth      =   4680
   StartUpPosition =   2  '屏幕中心
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
  a = InputBox("请输入第一个数")
  b = InputBox("请输入第二个数")
  c = InputBox("请输入第三个数")
  '求最大数
  m1 = a
  If b > m1 Then m1 = b
  If c > m1 Then m1 = c
  CurrentX = 1000: CurrentY = 1000
  Print "最 大 数 是:"; m1
  '求最小数
  m2 = a
  If b < m2 Then m2 = b
  If c < m2 Then m2 = c
  CurrentX = 1000
  Print "最 小 数 是:"; m2
End Sub

⌨️ 快捷键说明

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