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

📄 logoform1.frm

📁 南海舰队进销存管理系统 vb
💻 FRM
字号:
VERSION 5.00
Begin VB.Form logoform1 
   Caption         =   "南海舰队进销存管理系统"
   ClientHeight    =   2790
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4620
   Icon            =   "logoform1.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Moveable        =   0   'False
   ScaleHeight     =   2790
   ScaleWidth      =   4620
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1560
      TabIndex        =   0
      Top             =   960
      Width           =   2415
   End
   Begin VB.TextBox Text2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1560
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   1560
      Width           =   2415
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确 定"
      Height          =   375
      Left            =   960
      TabIndex        =   2
      Top             =   2160
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取 消"
      Height          =   375
      Left            =   2760
      TabIndex        =   3
      Top             =   2160
      Width           =   1095
   End
   Begin VB.Line Line2 
      X1              =   360
      X2              =   4200
      Y1              =   2640
      Y2              =   2640
   End
   Begin VB.Label Label1 
      Caption         =   "南海舰队进销存管理系统"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1080
      TabIndex        =   6
      Top             =   240
      Width           =   3255
   End
   Begin VB.Line Line1 
      X1              =   360
      X2              =   4200
      Y1              =   720
      Y2              =   720
   End
   Begin VB.Label Label2 
      Caption         =   "用户名:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   600
      TabIndex        =   5
      Top             =   960
      Width           =   1095
   End
   Begin VB.Label Label3 
      Caption         =   "密 码:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   600
      TabIndex        =   4
      Top             =   1560
      Width           =   1095
   End
   Begin VB.Image Image1 
      Height          =   480
      Left            =   480
      Picture         =   "logoform1.frx":0CCA
      Top             =   120
      Width           =   480
   End
End
Attribute VB_Name = "logoform1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private rs As New ADODB.Recordset
Private strsql As String
Private strconn As String

Private Sub Command1_Click()
On Error Resume Next
rs.MoveFirst
Do While Not rs.EOF
   If rs(0) = Text1.Text And rs(1) = Text2.Text Then
      user1 = Text1.Text
      user2 = Text2.Text
      If rs(2) = "xulang" Then xulang4 = 1
      MDIForm1.Show
      Unload Me
      Exit Do
   End If
   rs.MoveNext
Loop
If rs.EOF Then
   MsgBox "请确认你是否有此权限。", , "用户名或密码错误提示"
   Text1.Text = ""
   Text2.Text = ""
   Text1.SetFocus
   xulang4 = 0
End If
End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Form_Load()
On Error Resume Next
xulang4 = 0
strsql = "select * from xulang"
strconn = "provider=microsoft.jet.oledb.4.0;data source=" & App.Path & "\jxc.mdb"
With rs
  If .State = adStateOpen Then
     .Close
  End If
  .ActiveConnection = strconn
  .LockType = adLockReadOnly
  .CursorLocation = adUseClient
  .CursorType = adOpenForwardOnly
  .Source = strsql
  .Open
End With
End Sub

Private Sub Form_Resize()
logoform1.Height = 3195
logoform1.Width = 4740
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
   Text2.SetFocus
End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
If Text1.Text <> "" Then
If KeyAscii = 13 Then
   Call Command1_Click
End If
Else
MsgBox "请输入用户名", , "登录出错"
End If
End Sub

⌨️ 快捷键说明

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