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

📄 form1.frm

📁 ACCESS数据库开发例子
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   AutoRedraw      =   -1  'True
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Form1"
   ClientHeight    =   2745
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3570
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   2745
   ScaleWidth      =   3570
   ShowInTaskbar   =   0   'False
   Begin VB.Frame Frame1 
      Height          =   1575
      Left            =   240
      TabIndex        =   2
      Top             =   240
      Width           =   3135
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   900
         TabIndex        =   6
         Text            =   "Text1"
         Top             =   240
         Width           =   1935
      End
      Begin VB.TextBox Text2 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   900
         PasswordChar    =   "*"
         TabIndex        =   3
         Text            =   "Text2"
         Top             =   908
         Width           =   1935
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "密码:"
         Height          =   180
         Left            =   300
         TabIndex        =   5
         Top             =   1005
         Width           =   540
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "用户名:"
         Height          =   180
         Left            =   120
         TabIndex        =   4
         Top             =   337
         Width           =   720
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "登陆"
      Default         =   -1  'True
      Height          =   375
      Left            =   240
      TabIndex        =   1
      Top             =   1965
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   2400
      TabIndex        =   0
      Top             =   1965
      Width           =   975
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
nam = Text1.Text
Call gy_load
   rs_c.Open "select * from 用户表 where 用户名='" & Text1.Text & "'and 密码='" & Text2.Text & "'", cn_c, rdOpenKeyset, adLockOptimistic
   If Not rs_c.EOF Then
      MDIForm1.L = True
      MDIForm1.GL = True
      Unload Me
   Else
      MsgBox "用户名和密码不一致,请重新输入!"
      Text1.SetFocus
   End If
End Sub

Private Sub Command2_Click()
  End
End Sub

Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
Form1.Left = 5400
Form1.Top = 2000
End Sub

⌨️ 快捷键说明

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