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

📄 frmmain.frm

📁 教学管理系统
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmMain 
   BackColor       =   &H80000005&
   Caption         =   "主菜单"
   ClientHeight    =   4980
   ClientLeft      =   165
   ClientTop       =   450
   ClientWidth     =   7770
   Icon            =   "frmMain.frx":0000
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   4980
   ScaleWidth      =   7770
   WindowState     =   2  'Maximized
   Begin MSComctlLib.ImageList ImageList3 
      Left            =   2760
      Top             =   3480
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   1
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":0BF2
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ImageList ImageList2 
      Left            =   3720
      Top             =   3480
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   1
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":14CC
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   3600
      Top             =   2400
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   48
      ImageHeight     =   48
      MaskColor       =   16777215
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   1
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":1DA6
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   660
      Left            =   0
      TabIndex        =   3
      Top             =   0
      Width           =   7770
      _ExtentX        =   13705
      _ExtentY        =   1164
      ButtonWidth     =   1032
      ButtonHeight    =   1005
      Appearance      =   1
      ImageList       =   "ImageList4"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   6
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "Find"
            ImageKey        =   "Find"
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "New"
            ImageKey        =   "New"
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "Make"
            ImageKey        =   "Make"
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "Delete"
            ImageKey        =   "Delete"
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Style           =   3
         EndProperty
         BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Key             =   "Exit"
            ImageKey        =   "Exit"
         EndProperty
      EndProperty
   End
   Begin MSComctlLib.ListView ListView1 
      Height          =   4695
      Index           =   0
      Left            =   0
      TabIndex        =   0
      Top             =   1200
      Width           =   2415
      _ExtentX        =   4260
      _ExtentY        =   8281
      Arrange         =   2
      LabelEdit       =   1
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      _Version        =   393217
      Icons           =   "ImageList1"
      ForeColor       =   -2147483640
      BackColor       =   -2147483629
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   0
   End
   Begin MSComctlLib.ListView ListView1 
      Height          =   4695
      Index           =   1
      Left            =   2400
      TabIndex        =   1
      Top             =   1200
      Width           =   2535
      _ExtentX        =   4471
      _ExtentY        =   8281
      Arrange         =   2
      LabelEdit       =   1
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      _Version        =   393217
      Icons           =   "ImageList3"
      SmallIcons      =   "ImageList3"
      ForeColor       =   -2147483640
      BackColor       =   -2147483629
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   0
   End
   Begin MSComctlLib.ListView ListView1 
      Height          =   4695
      Index           =   2
      Left            =   5040
      TabIndex        =   2
      Top             =   1200
      Width           =   2535
      _ExtentX        =   4471
      _ExtentY        =   8281
      Arrange         =   2
      LabelEdit       =   1
      LabelWrap       =   -1  'True
      HideSelection   =   -1  'True
      _Version        =   393217
      Icons           =   "ImageList2"
      SmallIcons      =   "ImageList2"
      ForeColor       =   -2147483640
      BackColor       =   -2147483629
      BorderStyle     =   1
      Appearance      =   1
      NumItems        =   0
   End
   Begin MSComctlLib.ImageList ImageList4 
      Left            =   2400
      Top             =   480
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   5
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":2C80
            Key             =   "Find"
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":3882
            Key             =   "New"
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":4484
            Key             =   "Make"
         EndProperty
         BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":5766
            Key             =   "Delete"
         EndProperty
         BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmMain.frx":68F8
            Key             =   "Exit"
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim Level1 As String
Dim Level2 As String
Dim Level3 As String
Private Sub Form_Load()
    Dim item As ListItem
    Select Case Limit
        Case 1
            Set item = ListView1(0).ListItems.Add
            item.text = "个人管理"
            item.Icon = 1
            item.Key = "personal"
        Case 2
            Set item = ListView1(0).ListItems.Add
            item.text = "个人管理"
            item.Icon = 1
            item.Key = "personal"
            Set item = ListView1(0).ListItems.Add
            item.text = "学生管理"
            item.Icon = 1
            item.Key = "student"
            Set item = ListView1(0).ListItems.Add
            item.text = "课程管理"
            item.Icon = 1
            item.Key = "course"
        Case 3
            Set item = ListView1(0).ListItems.Add
            item.text = "个人管理"
            item.Icon = 1
            item.Key = "personal"
            Set item = ListView1(0).ListItems.Add
            item.text = "学生管理"
            item.Icon = 1
            item.Key = "student"
            Set item = ListView1(0).ListItems.Add
            item.text = "课程管理"
            item.Icon = 1
            item.Key = "course"
            Set item = ListView1(0).ListItems.Add
            item.text = "机构管理"
            item.Icon = 1
            item.Key = "department"
        Case 4
            Set item = ListView1(0).ListItems.Add
            item.text = "个人管理"
            item.Icon = 1
            item.Key = "personal"
            Set item = ListView1(0).ListItems.Add
            item.text = "学生管理"
            item.Icon = 1
            item.Key = "student"
            Set item = ListView1(0).ListItems.Add
            item.text = "课程管理"
            item.Icon = 1
            item.Key = "course"
            Set item = ListView1(0).ListItems.Add
            item.text = "机构管理"
            item.Icon = 1
            item.Key = "department"
            Set item = ListView1(0).ListItems.Add
            item.text = "帐户管理"
            item.Icon = 1
            item.Key = "users"
    End Select
End Sub

Private Sub Form_Resize()
    With ListView1(0)
        .Top = 0 + Toolbar1.height
        .Left = 0
        .height = Me.ScaleHeight
        .Width = Me.ScaleWidth / 5
    End With
    
    With ListView1(1)
        .Top = 0 + Toolbar1.height
        .Left = ListView1(0).Left + ListView1(0).Width
        .height = Me.ScaleHeight
        .Width = Me.ScaleWidth / 5 * 2
    End With
    
    With ListView1(2)
        .Top = 0 + Toolbar1.height
        .Left = ListView1(1).Left + ListView1(1).Width
        .height = Me.ScaleHeight
        .Width = Me.ScaleWidth / 5 * 2
    End With
End Sub

Private Sub ListView1_ItemClick(Index As Integer, ByVal item As MSComctlLib.ListItem)
    Dim ItemX As ListItem
    Select Case Index
        Case 0
            ListView1(2).ListItems.Clear
            Select Case item.Key
                Case "personal"
                    Level1 = item.Key
                    Select Case Limit
                        Case 1
                            ListView1(1).ListItems.Clear
                            Set ItemX = ListView1(1).ListItems.Add
                            ItemX.text = "个人资料"
                            ItemX.Icon = 1
                            ItemX.Key = "text"
                            Set ItemX = ListView1(1).ListItems.Add

⌨️ 快捷键说明

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