form3.frm

来自「vb电子书籍」· FRM 代码 · 共 80 行

FRM
80
字号
VERSION 5.00
Begin VB.Form v6j088c 
   Caption         =   "计算成绩"
   ClientHeight    =   2415
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4020
   LinkTopic       =   "Form3"
   ScaleHeight     =   2415
   ScaleWidth      =   4020
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "返回"
      Height          =   495
      Left            =   1320
      TabIndex        =   3
      Top             =   1680
      Width           =   1095
   End
   Begin VB.TextBox txttotal 
      Height          =   270
      Left            =   1920
      TabIndex        =   2
      Top             =   1080
      Width           =   975
   End
   Begin VB.TextBox txtaverage 
      Height          =   270
      Left            =   1920
      TabIndex        =   1
      Top             =   600
      Width           =   975
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "平均成绩:                  总分:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   840
      TabIndex        =   0
      Top             =   600
      Width           =   1215
   End
End
Attribute VB_Name = "v6j088c"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'CODE Manger By BcodeXRose
'##################################################################
'## 过程名称:Command1_Click
'## 参数: 无
'##################################################################
Private Sub Command1_Click()
    Load Form1
    Form1.Show
    Form3.Hide
End Sub
    
'##################################################################
'## 过程名称:Form_Activate
'## 参数: 无
'##################################################################
Private Sub Form_Activate()
    Dim stotal As Integer
    stotal = smath + sphysics + chemistry + schinese + senglish
    txtaverage.Text = stotal / 5
    txttotal.Text = stotal
End Sub
    

⌨️ 快捷键说明

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