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

📄 frmgetautho2.frm

📁 很好的个人数字助理软件代码
💻 FRM
📖 第 1 页 / 共 2 页
字号:
      TabIndex        =   14
      Top             =   3960
      Width           =   495
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "City:"
      Height          =   225
      Left            =   1560
      TabIndex        =   12
      Top             =   3600
      Width           =   360
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "E-Mail :"
      Height          =   225
      Left            =   1320
      TabIndex        =   10
      Top             =   3240
      Width           =   600
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Last Name:"
      Height          =   225
      Left            =   960
      TabIndex        =   6
      Top             =   2520
      Width           =   960
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "First Name:"
      Height          =   225
      Left            =   960
      TabIndex        =   5
      Top             =   2160
      Width           =   960
   End
   Begin VB.Line Line3 
      BorderStyle     =   5  'Dash-Dot-Dot
      X1              =   240
      X2              =   5880
      Y1              =   1320
      Y2              =   1320
   End
   Begin VB.Line Line2 
      BorderWidth     =   2
      X1              =   6135
      X2              =   6120
      Y1              =   240
      Y2              =   6120
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   $"frmGetAutho2.frx":030A
      Height          =   975
      Left            =   120
      TabIndex        =   4
      Top             =   360
      Width           =   5895
   End
   Begin VB.Line Line1 
      BorderWidth     =   2
      X1              =   15
      X2              =   0
      Y1              =   240
      Y2              =   6120
   End
   Begin VB.Label lblCaptionSupport 
      BackStyle       =   0  'Transparent
      Height          =   255
      Left            =   0
      TabIndex        =   3
      Top             =   0
      Width           =   6135
   End
   Begin VB.Label lblCaption 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "Hirdhav Digital Diary  -  Get Autho (Step 2)"
      Height          =   225
      Left            =   200
      TabIndex        =   2
      Top             =   10
      Width           =   3465
   End
   Begin VB.Shape shapeCaption 
      BackStyle       =   1  'Opaque
      BorderWidth     =   2
      Height          =   255
      Left            =   10
      Top             =   10
      Width           =   6135
   End
End
Attribute VB_Name = "frmGetAutho2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Form_Load()
Me.BackColor = RGB(145, 155, 100)
shapeCaption.BackColor = vbBlack
lblCaption.ForeColor = RGB(145, 155, 100)
txtUName.BackColor = RGB(145, 155, 100)
txtPassword.BackColor = RGB(145, 155, 100)
txtFName.BackColor = RGB(145, 155, 100)
txtLName.BackColor = RGB(145, 155, 100)
txtEMail.BackColor = RGB(145, 155, 100)
txtCity.BackColor = RGB(145, 155, 100)
txtState.BackColor = RGB(145, 155, 100)
txtCountry.BackColor = RGB(145, 155, 100)
txtQuestion.BackColor = RGB(145, 155, 100)
txtAnswer.BackColor = RGB(145, 155, 100)
txtGender.BackColor = RGB(145, 155, 100)
shapeCancel.BackColor = RGB(145, 155, 100)
shapeNext.BackColor = RGB(145, 155, 100)
shapeCheckINET.BackColor = RGB(145, 155, 100)
End Sub

Private Sub lblCancelSupport_Click()
frmGetAutho1.Show
Unload Me
End Sub

Private Sub lblCancelSupport_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblCancel.ForeColor = RGB(145, 155, 100)
shapeCancel.BackColor = vbBlack
End Sub

Private Sub lblCancelSupport_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
shapeCancel.BackColor = RGB(145, 155, 100)
lblCancel.ForeColor = vbBlack
End Sub

Private Sub lblCaptionSupport_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
DragForm Me
End Sub

Private Sub lblCheckINETSupport_Click()
Dim flags As Long
Dim result As Boolean

result = InternetGetConnectedState(flags, 0)

If result Then
    HDDMsgBox "Internet Connection is Working..."
    Exit Sub
Else
    HDDMsgBox "Internet Connection is not working..."
    Exit Sub
End If
End Sub

Private Sub lblCheckINETSupport_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblCheckINET.ForeColor = RGB(145, 155, 100)
shapeCheckINET.BackColor = vbBlack
End Sub

Private Sub lblCheckINETSupport_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
shapeCheckINET.BackColor = RGB(145, 155, 100)
lblCheckINET.ForeColor = vbBlack
End Sub

Private Sub lblNextSupport_Click()
If txtUName.Text = "" Then
    HDDMsgBox "Please insert Username."
    Exit Sub
ElseIf InStr(1, txtUName.Text, " ") Then
    HDDMsgBox "Sorry, Spaces are not allowed."
    Exit Sub
ElseIf txtPassword.Text = "" Then
    HDDMsgBox "Please insert Password."
    Exit Sub
ElseIf InStr(1, txtPassword.Text, " ") Then
    HDDMsgBox "Sorry, Spaces are not allowed."
    Exit Sub
ElseIf txtFName.Text = "" Then
    HDDMsgBox "Please enter your First Name."
    Exit Sub
ElseIf InStr(1, txtFName.Text, " ") Then
    HDDMsgBox "Sorry, Spaces are not allowed."
    Exit Sub
ElseIf txtLName.Text = "" Then
    HDDMsgBox "Please enter your Last Name."
    Exit Sub
ElseIf InStr(1, txtLName.Text, " ") Then
    HDDMsgBox "Sorry, Spaces are not allowed."
    Exit Sub
ElseIf txtGender.Text <> "M" Then
    If txtGender.Text <> "F" Then
        HDDMsgBox "Invalid Gender."
        Exit Sub
    End If
ElseIf InStr(1, txtEMail.Text, " ") Then
    HDDMsgBox "Invalid E-Mail Address."
    Exit Sub
ElseIf InStr(1, txtCity.Text, " ") Then
    HDDMsgBox "Sorry, Spaces are not allowed."
    Exit Sub
ElseIf txtCity.Text = "" Then
    HDDMsgBox "Please enter your city name."
    Exit Sub
ElseIf txtState.Text = "" Then
    HDDMsgBox "Please enter your state name."
    Exit Sub
ElseIf InStr(1, txtState.Text, " ") Then
    HDDMsgBox "Sorry, Spaces are not allowed."
    Exit Sub
ElseIf txtCountry.Text = "" Then
    HDDMsgBox "Please enter your Country name."
    Exit Sub
ElseIf InStr(1, txtCountry.Text, " ") Then
    HDDMsgBox "Sorry, Spaces are not allowed."
    Exit Sub
ElseIf txtQuestion.Text = "" Then
    HDDMsgBox "Please enter your Hint Question."
    Exit Sub
ElseIf txtAnswer.Text = "" Then
    HDDMsgBox "Please enter your Hint Answer."
    Exit Sub
End If
DoEvents
frmGetAutho3.Show
frmGetAutho3.Timer1.Enabled = True
DoEvents
Me.Hide
DoEvents
End Sub

Private Sub lblNextSupport_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
lblNext.ForeColor = RGB(145, 155, 100)
shapeNext.BackColor = vbBlack
End Sub

Private Sub lblNextSupport_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
shapeNext.BackColor = RGB(145, 155, 100)
lblNext.ForeColor = vbBlack
End Sub

Private Sub txtAnswer_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub

Private Sub txtCountry_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub

Private Sub txtEMail_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(LCase(Chr(KeyAscii)))
End Sub

Private Sub txtGender_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub

Private Sub txtPassword_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(LCase(Chr(KeyAscii)))
End Sub

Private Sub txtQuestion_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(UCase(Chr(KeyAscii)))
End Sub

Private Sub txtUName_KeyPress(KeyAscii As Integer)
KeyAscii = Asc(LCase(Chr(KeyAscii)))
End Sub

⌨️ 快捷键说明

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