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

📄 main.vb

📁 本系统利用vb.net做为前台开发工具
💻 VB
字号:
Public Class Main

  Public Shared Sub Main()
    '是否启用数据库连接助手,版权:http://www.trfsoft.com
    Dim IsUseConnSupporter As Boolean = True

    If IsUseConnSupporter Then
      Dim strErrMsg As String
      Dim techSupporter As New techSupport.techSupport
      If Not techSupporter.TestConn(DB.DB.ConnStr, strErrMsg, Application.ProductName) Then
        MsgBox(strErrMsg, MsgBoxStyle.Exclamation + MsgBoxStyle.ApplicationModal + MsgBoxStyle.SystemModal + MsgBoxStyle.MsgBoxSetForeground)
        Application.Exit()
        End
      End If
    End If

    '===========================================================
    '连接成功,进行正常的登录验证
    '=======================================
    '首先显示登录窗体以验证用户身份
    Dim myfrm As New frmLogin
    myfrm.txtPwd.Focus()
    myfrm.TopMost = True
    myfrm.ShowDialog()
    '如果成功登录则记录下用户权限并运行主窗体
    If myfrm.blnLoginSucc = True Then
      '      strLogRole = myfrm.strLoginRole
      Dim myfrmMain As New frmMain
      myfrmMain.strLogRole = myfrm.strLoginRole
      Application.Run(myfrmMain)
    End If

  End Sub

End Class

⌨️ 快捷键说明

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