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

📄 inputmm.frm

📁 这是一套农村电费计算程序的源码。能够对用户电费进行计算、查询、打印。
💻 FRM
字号:
VERSION 5.00
Begin VB.Form inputmm 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "登录"
   ClientHeight    =   1590
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4665
   Icon            =   "inputmm.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1590
   ScaleWidth      =   4665
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton Command2 
      Cancel          =   -1  'True
      Caption         =   "退 出"
      Height          =   375
      Left            =   2760
      TabIndex        =   5
      Top             =   1150
      Width           =   855
   End
   Begin VB.CommandButton Command1 
      Caption         =   "登 录"
      Default         =   -1  'True
      Height          =   375
      Left            =   840
      TabIndex        =   4
      Top             =   1150
      Width           =   855
   End
   Begin VB.TextBox Text2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1920
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   600
      Width           =   1455
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1920
      TabIndex        =   0
      Top             =   120
      Width           =   1455
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      Caption         =   "密  码"
      Height          =   255
      Left            =   960
      TabIndex        =   2
      Top             =   720
      Width           =   855
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      Caption         =   "用户名"
      Height          =   255
      Left            =   960
      TabIndex        =   1
      Top             =   240
      Width           =   855
   End
End
Attribute VB_Name = "inputmm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
    Dim sj As Database
    Dim mmsj As Recordset

Private Sub Command1_Click()
    If Text1.Text <> "" And Text2.Text <> "" Then
            tmp = "select * from mmk where user='" & Text1.Text + "' and id='" & Text2.Text + "'"
            Set mmsj = sj.OpenRecordset(tmp)
            If mmsj.RecordCount <> 0 Then
                boolean1(1) = True
                Unload Me
                Exit Sub
                Else
                ab = MsgBox("口令错误!", vbOKOnly, "提示:")
            End If
        Else
            ab = MsgBox("口令错误!", vbOKOnly, "提示:")
    End If
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    Set sj = OpenDatabase(pathM + "\data\cjsj.mdb")
    'Set mmsj = sj.OpenRecordset("mmk")
    'sj.
End Sub

Private Sub Text1_GotFocus()
    If Text1 <> "" Then
        Text1.SelStart = 0
        Text1.SelLength = Len(Text1)
    End If
End Sub
Private Sub Text2_GotFocus()
    If Text2 <> "" Then
        Text2.SelStart = 0
        Text2.SelLength = Len(Text1)
    End If
End Sub

⌨️ 快捷键说明

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