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

📄 frmshuxing.frm

📁 用VB编写的学生成绩管理系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Width           =   255
      End
      Begin VB.Label Label6 
         Caption         =   "="
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   1080
         TabIndex        =   35
         Top             =   600
         Width           =   255
      End
      Begin VB.Label Label5 
         Caption         =   "科目名称"
         Height          =   255
         Left            =   240
         TabIndex        =   17
         Top             =   360
         Width           =   855
      End
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   4800
      TabIndex        =   12
      Top             =   600
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   4800
      TabIndex        =   11
      Top             =   120
      Width           =   1095
   End
   Begin VB.TextBox Text3 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   320
      Left            =   3600
      TabIndex        =   10
      Top             =   640
      Width           =   855
   End
   Begin VB.TextBox Text2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   320
      Left            =   1080
      TabIndex        =   8
      Text            =   "未知班级"
      Top             =   640
      Width           =   1695
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   320
      Left            =   1080
      TabIndex        =   6
      Text            =   "未知院系"
      Top             =   160
      Width           =   3375
   End
   Begin VB.Frame Frame1 
      Caption         =   " 德育(&D) "
      Height          =   1695
      Left            =   120
      TabIndex        =   0
      Top             =   1200
      Width           =   2655
      Begin VB.TextBox textDeKemu 
         Height          =   270
         Index           =   2
         Left            =   240
         TabIndex        =   3
         Text            =   "∑德育"
         Top             =   720
         Width           =   975
      End
      Begin VB.TextBox textDeKemu 
         Height          =   270
         Index           =   1
         Left            =   1440
         TabIndex        =   2
         Text            =   "德调节"
         Top             =   1080
         Width           =   975
      End
      Begin VB.TextBox textDeKemu 
         Height          =   270
         Index           =   0
         Left            =   240
         TabIndex        =   1
         Text            =   "德平时"
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label10 
         Caption         =   "+"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   1200
         TabIndex        =   34
         Top             =   1080
         Width           =   255
      End
      Begin VB.Label Label4 
         Caption         =   "="
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   1200
         TabIndex        =   33
         Top             =   720
         Width           =   255
      End
      Begin VB.Label Label1 
         Caption         =   "科目名称"
         Height          =   255
         Left            =   240
         TabIndex        =   4
         Top             =   480
         Width           =   855
      End
   End
   Begin VB.Label Label24 
      Caption         =   "%+"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3960
      TabIndex        =   65
      Top             =   5220
      Width           =   615
   End
   Begin VB.Label Label23 
      Caption         =   "%"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   5760
      TabIndex        =   64
      Top             =   5220
      Width           =   375
   End
   Begin VB.Label Label22 
      Caption         =   "×"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   3360
      TabIndex        =   63
      Top             =   5220
      Width           =   255
   End
   Begin VB.Label Label21 
      Caption         =   "×"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   5160
      TabIndex        =   62
      Top             =   5220
      Width           =   255
   End
   Begin VB.Label Label20 
      Caption         =   "%+"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   2160
      TabIndex        =   57
      Top             =   5220
      Width           =   615
   End
   Begin VB.Label Label19 
      Caption         =   "×"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   1560
      TabIndex        =   55
      Top             =   5220
      Width           =   255
   End
   Begin VB.Label Label18 
      Caption         =   "="
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   600
      TabIndex        =   53
      Top             =   5220
      Width           =   255
   End
   Begin VB.Label Label3 
      Caption         =   "人数"
      Height          =   255
      Left            =   3120
      TabIndex        =   9
      Top             =   720
      Width           =   495
   End
   Begin VB.Label Label2 
      Caption         =   "班级名称"
      Height          =   255
      Left            =   240
      TabIndex        =   7
      Top             =   720
      Width           =   735
   End
   Begin VB.Label LabelYX 
      Caption         =   "院系名称"
      Height          =   255
      Left            =   240
      TabIndex        =   5
      Top             =   240
      Width           =   855
   End
End
Attribute VB_Name = "frmShuxing"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    '将各属性值传递给当前子窗体
    With frmMain.ActiveForm
        Dim i, j, k As Integer
        .TextShuxing(1).Text = Text1.Text
        .TextShuxing(2).Text = Text2.Text
        .TextShuxing(3).Text = Text4(0).Text
        .TextShuxing(4).Text = Text4(1).Text
        For i = 1 To 8
            .TextShuxing(i + 4) = TextZhiXuefen(i - 1).Text
        Next
        .TextShuxing(13) = Text8.Text
        .TextShuxing(14) = Text11.Text
        .TextShuxing(15) = Text12.Text
        With .ChengJB
            .Rows = Val(Text3.Text) + 1
            .TextArray(Fgi(0, 13)) = textDeKemu(2).Text
            .TextArray(Fgi(0, 11)) = textDeKemu(0).Text
            .TextArray(Fgi(0, 12)) = textDeKemu(1).Text
            .TextArray(Fgi(0, 16)) = TextTiKemu(2).Text
            .TextArray(Fgi(0, 14)) = TextTiKemu(0).Text
            .TextArray(Fgi(0, 15)) = TextTiKemu(1).Text
            For j = 1 To 8
                .TextArray(Fgi(0, j + 1)) = TextZhiKemu(j - 1).Text
            Next
            .TextArray(Fgi(0, 10)) = Text5.Text
            .TextArray(Fgi(0, 17)) = Text6.Text
            For k = 1 To .Rows - 1
                .TextArray(Fgi((k), 0)) = k
            Next
        End With
    End With
    frmMain.ActiveForm.Text1.Visible = False
    frmMain.ActiveForm.Timer1.Enabled = False
    frmMain.ActiveForm.Text1.Enabled = False
    Chushi
    Unload Me
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    Dim i, j As Integer
    Left = (Screen.Width - Me.Width) / 2
    Top = (Screen.Height - Me.Height) / 2
    If frmMain.ActiveForm.TextShuxing(2) <> "Text1" Then
        With frmMain.ActiveForm
            Text1.Text = .TextShuxing(1).Text
             Text2.Text = .TextShuxing(2).Text
            Text4(0).Text = .TextShuxing(3).Text
            Text4(1).Text = .TextShuxing(4).Text
            For i = 1 To 8
                TextZhiXuefen(i - 1).Text = .TextShuxing(i + 4)
            Next
            Text8.Text = .TextShuxing(13)
            Text11.Text = .TextShuxing(14)
            Text12.Text = .TextShuxing(15)
            With .ChengJB
                Text3.Text = .Rows - 1
                textDeKemu(2).Text = .TextArray(Fgi(0, 13))
                textDeKemu(0).Text = .TextArray(Fgi(0, 11))
                textDeKemu(1).Text = .TextArray(Fgi(0, 12))
                TextTiKemu(2).Text = .TextArray(Fgi(0, 16))
                TextTiKemu(0).Text = .TextArray(Fgi(0, 14))
                TextTiKemu(1).Text = .TextArray(Fgi(0, 15))
                For j = 1 To 8
                    TextZhiKemu(j - 1).Text = .TextArray(Fgi(0, j + 1))
                Next
                Text5.Text = .TextArray(Fgi(0, 10))
                Text6.Text = .TextArray(Fgi(0, 17))
            End With
        End With
    End If
End Sub

Private Sub Text5_Change()
    Text9.Text = Text5.Text
End Sub

Private Sub textDeKemu_Change(Index As Integer)
    Text7.Text = textDeKemu(2).Text
End Sub

Private Sub TextTiKemu_Change(Index As Integer)
    Text10.Text = TextTiKemu(2).Text
End Sub

⌨️ 快捷键说明

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