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

📄 frmmain.frm

📁 程序主要是关于学生成绩管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmMain 
   BackColor       =   &H00E0E0E0&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "成绩管理系统"
   ClientHeight    =   6555
   ClientLeft      =   1875
   ClientTop       =   2325
   ClientWidth     =   10140
   FillColor       =   &H00C0C0C0&
   Icon            =   "FrmMain.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   Picture         =   "FrmMain.frx":08CA
   ScaleHeight     =   437
   ScaleMode       =   3  'Pixel
   ScaleWidth      =   676
   Begin VB.Menu menu1 
      Caption         =   "系统管理"
      NegotiatePosition=   3  'Right
      Begin VB.Menu menua 
         Caption         =   "修改密码"
      End
      Begin VB.Menu menub 
         Caption         =   "添加用户"
      End
      Begin VB.Menu menuc 
         Caption         =   "重新登陆"
      End
   End
   Begin VB.Menu menu3 
      Caption         =   "信息录入"
      NegotiatePosition=   3  'Right
      Begin VB.Menu menuaddG 
         Caption         =   "添加成绩"
      End
      Begin VB.Menu menuaddC 
         Caption         =   "添加课程"
      End
      Begin VB.Menu menuInput 
         Caption         =   "基本信息录入"
      End
   End
   Begin VB.Menu menu4 
      Caption         =   "信息查询"
      NegotiatePosition=   3  'Right
      Begin VB.Menu menug 
         Caption         =   "基本信息查询"
      End
      Begin VB.Menu menu4a 
         Caption         =   "成绩查询"
      End
   End
   Begin VB.Menu menu2 
      Caption         =   "成绩管理"
      NegotiatePosition=   3  'Right
   End
   Begin VB.Menu menu5 
      Caption         =   "打印报表"
      NegotiatePosition=   3  'Right
      Begin VB.Menu menum 
         Caption         =   "学生各科成绩"
      End
      Begin VB.Menu menu34 
         Caption         =   "学生自然状况"
      End
      Begin VB.Menu menud 
         Caption         =   "补考学生"
      End
   End
   Begin VB.Menu menu6 
      Caption         =   "关于"
      NegotiatePosition=   3  'Right
   End
   Begin VB.Menu menu7 
      Caption         =   "退出"
      NegotiatePosition=   3  'Right
   End
   Begin VB.Menu sd 
      Caption         =   "sdf"
   End
End
Attribute VB_Name = "FrmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Option Explicit

Private Sub Command1_Click()
    FrmView.Show 1 '显示浏览和修改窗口
    
End Sub



Private Sub Command3_Click()
    DlgReport.Show 1 '显示打印报表窗口
End Sub



Private Sub Command5_Click()
    Unload Me
End Sub

Private Sub Command6_Click()
    frmAbout.Show (1) '显示关于
End Sub

Private Sub Command7_Click()
    FrmInput.Show (1) '显示数据录入窗口
End Sub

Private Sub Command8_Click()
frmsysterm.Show 1

End Sub

Private Sub Command9_Click()
Load frmsearchMid
frmsearchMid.Show 1
End Sub

Private Sub Form_Load()
    MakeCenter FrmMain
    If IsAdmin = True Then
        Me.Caption = Me.Caption + "[超级用户]"
    Else
        Me.Caption = Me.Caption + "[一般用户]"
        menu3.Visible = False
      
        menub.Visible = False
        'menu2.Enabled = False
        menu5.Visible = False
    End If
    Me.Show
End Sub

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    cn.Close '关闭ADO连接
    Set cn = Nothing
    Dim frm As Form
    For Each frm In Forms '销毁所有窗口
        Unload frm
    Next frm
End Sub

Private Sub menu2_Click()
guanli.Show 1
End Sub


Private Sub menu34_Click()
On Error GoTo errh
    DataReport1.Show 1
    Exit Sub
errh:
    MsgBox Err.Description
End Sub

Private Sub menu4a_Click()
frmsearchcj.Show 1

End Sub

Private Sub menu6_Click()
about.Show 1
End Sub

Private Sub menu7_Click()
Unload Me
End Sub

Private Sub menua_Click()
frmPassxg.Show 1
End Sub

Private Sub menuaddC_Click()
tjkc.Show 1
End Sub

Private Sub menuaddG_Click()
frmAddGrade.Show 1
End Sub

Private Sub menub_Click()
tjyh.Show 1
End Sub

Private Sub menuc_Click()
Unload Me
login.Show 1

End Sub

Private Sub menud_Click()
 Reportreject.Show 1
End Sub

Private Sub menug_Click()
frmsearchInfo.Show 1
End Sub

Private Sub menuInput_Click()
tjjbxx.Show 1
End Sub

Private Sub menum_Click()
 ReportAch.Show 1
End Sub

Private Sub sd_Click()
frmStat.Show 1
End Sub

⌨️ 快捷键说明

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