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

📄 form5.frm

📁 很简单的小程序
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "msadodc.ocx"
Begin VB.Form Form5 
   Caption         =   "Form5"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form5"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   615
      Left            =   600
      Top             =   4440
      Width           =   2055
      _ExtentX        =   3625
      _ExtentY        =   1085
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=test"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "test"
      OtherAttributes =   ""
      UserName        =   "system"
      Password        =   "manager"
      RecordSource    =   "select * from users;"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.CommandButton cmdcancel 
      Caption         =   "取消"
      Height          =   495
      Left            =   3480
      TabIndex        =   7
      Top             =   3480
      Width           =   1215
   End
   Begin VB.CommandButton cmdlogin 
      Caption         =   "登陆"
      Height          =   495
      Left            =   1560
      TabIndex        =   6
      Top             =   3480
      Width           =   1335
   End
   Begin VB.Frame Frame1 
      Caption         =   "login"
      Height          =   1935
      Left            =   1440
      TabIndex        =   0
      Top             =   1200
      Width           =   6255
      Begin VB.TextBox Text2 
         DataSource      =   "adodc1"
         Height          =   615
         Left            =   2160
         TabIndex        =   5
         Top             =   1080
         Width           =   2055
      End
      Begin VB.TextBox Text1 
         DataSource      =   "adodc1"
         Height          =   615
         Left            =   2160
         TabIndex        =   4
         Top             =   240
         Width           =   2055
      End
      Begin VB.Label Label3 
         Caption         =   "密码"
         Height          =   495
         Left            =   240
         TabIndex        =   3
         Top             =   1200
         Width           =   1455
      End
      Begin VB.Label Label2 
         Caption         =   "管理员"
         Height          =   495
         Left            =   240
         TabIndex        =   2
         Top             =   360
         Width           =   1575
      End
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Caption         =   "管理员登陆"
      Height          =   495
      Left            =   2760
      TabIndex        =   1
      Top             =   240
      Width           =   3135
   End
End
Attribute VB_Name = "Form5"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()

End Sub

Private Sub cmdcancel_Click()
End
End Sub

Private Sub cmdlogin_Click()
Adodc1.RecordSource = "select id from users"
'If StrComp(Adodc1.RecordSource, Trim(Text1.Text)) = 0 And pwd <> "" Then
bresult = True
Me.Visible = False
frm.Show
'Else
'bresult = False
'MsgBox "请确认密码是否正确"
'End If
End Sub
 

⌨️ 快捷键说明

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