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

📄 frmeditstudent_recruit.vb

📁 通用学籍管理软件 vb开发access数据库的实例
💻 VB
字号:
Public Class FrmEditStudent_Recruit

    Private Sub FrmEditStudent_Recruit_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.ComboRecruit.DataSource = DBRecruit.LoadRecruit
        Me.ComboRecruit.DisplayMember = "招生人员姓名"
        Me.ComboRecruit.SelectedIndex = 0
    End Sub

    Private Sub BtnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnOK.Click
        DGVResult.DataSource = DBStudent.LoadStudent("RecruitName", ComboRecruit.Text, "")
    End Sub

    Private Sub DGVResult_CellContentDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGVResult.CellContentDoubleClick
        If User.Mod2 = "可读" Then
            MsgBox("您无权写入记录!", MsgBoxStyle.Exclamation, "信息框")
            Exit Sub
        End If
        Dim FrmObj As New FrmSaveEditedStudent(DGVResult.Rows(e.RowIndex).Cells(0).Value)
        Me.WindowState = FormWindowState.Minimized
        FrmObj.ShowDialog(Me.Parent)
        Me.WindowState = FormWindowState.Normal
        DGVResult.DataSource = DBStudent.LoadStudent("RecruitName", ComboRecruit.Text, "")
    End Sub
End Class

⌨️ 快捷键说明

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