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

📄 frmauthentic.frm

📁 远程数据库读取保存示例 .rar
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmAuthentic 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "请求验证"
   ClientHeight    =   1500
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4455
   ClipControls    =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1500
   ScaleWidth      =   4455
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.TextBox Text1 
      Height          =   285
      IMEMode         =   3  'DISABLE
      Index           =   1
      Left            =   1560
      PasswordChar    =   "*"
      TabIndex        =   1
      Text            =   "Text1"
      Top             =   480
      Width           =   2775
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   375
      Left            =   1560
      TabIndex        =   4
      Top             =   1080
      Width           =   1335
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "登录"
      Default         =   -1  'True
      Height          =   375
      Left            =   3000
      TabIndex        =   2
      Top             =   1080
      Width           =   1335
   End
   Begin VB.TextBox Text1 
      Height          =   285
      Index           =   0
      Left            =   1560
      TabIndex        =   0
      Text            =   "Text1"
      Top             =   120
      Width           =   2775
   End
   Begin VB.Label Label4 
      Caption         =   "Label4"
      Height          =   255
      Left            =   960
      TabIndex        =   7
      Top             =   600
      Width           =   2895
   End
   Begin VB.Label Label3 
      Caption         =   "Label3"
      Height          =   255
      Left            =   960
      TabIndex        =   6
      Top             =   240
      Width           =   2655
   End
   Begin VB.Label Label2 
      Caption         =   "密码"
      Height          =   255
      Left            =   120
      TabIndex        =   5
      Top             =   480
      Width           =   1335
   End
   Begin VB.Label Label1 
      Caption         =   "用户名"
      Height          =   255
      Left            =   120
      TabIndex        =   3
      Top             =   120
      Width           =   1335
   End
End
Attribute VB_Name = "FrmAuthentic"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'******************************************************
'我为人人
'人人为我
'枕善居汉化收藏整理
'http://www.mndsoft.com/blog/
'e-mail:mnd@mndsoft.com
'2005.03.05
'******************************************************
Private Sub cmdCancel_Click()
Unload Me
FrmClient.AuthCompleted = False
End Sub
Public Function SendAuthentication(Username, Password As String) As Boolean

With FrmClient
    
    Text1(0).Enabled = False
    Text1(1).Enabled = False
    cmdOK.Enabled = False
    Label3.Visible = True
    Label3.Caption = "验证用户名和密码"
    .StatusBar1.Panels.Item(1).Text = "验证用户名和密码"
    .sckClient(.MaxCN).SendData "UserName" & "~~" & Username & "~~" & Password & "~~" & FrmClient.ConCurrent & "~~"
    Text1(1).Visible = False
    Text1(0).Visible = False
    Label1.Visible = False
    Label2.Visible = False
End With

End Function
Private Sub cmdOK_Click()

 j = SendAuthentication(Text1(0).Text, Text1(1).Text) = True

End Sub

Private Sub Form_Load()
'Text1(1).Text = "": Text1(0).Text = "" 'Clears the TextBoxes.
Label3.Visible = False
Label4.Visible = False
Text1(0).Text = "Chris Hatton"      'Just saves me from having to enter in my details.
Text1(1).Text = "Password"          'Im to lazy to keep inputting my password.
FrmClient.sckClient(FrmClient.MaxCN).SendData "GetRsCount" & FrmClient.ConCurrent
End Sub

Private Sub Text1_GotFocus(Index As Integer)
Text1(0).SelLength = Len(Text1(0).Text)
Text1(1).SelLength = Len(Text1(1).Text)
End Sub











⌨️ 快捷键说明

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