home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "Level Three"
- ClientHeight = 2685
- ClientLeft = 3645
- ClientTop = 2730
- ClientWidth = 3645
- Height = 3090
- Left = 3585
- LinkTopic = "Form1"
- LockControls = -1 'True
- ScaleHeight = 2685
- ScaleWidth = 3645
- Top = 2385
- Width = 3765
- Begin VB.TextBox txtKickOut
- Height = 315
- Left = 120
- TabIndex = 5
- Top = 1770
- Width = 735
- End
- Begin VB.CommandButton Command3
- Caption = "E&xit"
- Height = 405
- Left = 2490
- TabIndex = 4
- Top = 2190
- Width = 1065
- End
- Begin VB.CommandButton Command2
- Caption = "&Continue"
- Height = 405
- Left = 1290
- TabIndex = 3
- Top = 2190
- Width = 1065
- End
- Begin VB.CommandButton Command1
- Caption = "&Register"
- Enabled = 0 'False
- Height = 405
- Left = 120
- TabIndex = 2
- Top = 2190
- Width = 1065
- End
- Begin VB.TextBox Text2
- Height = 315
- Left = 930
- MultiLine = -1 'True
- TabIndex = 1
- Top = 1770
- Width = 2565
- End
- Begin VB.TextBox Text1
- Height = 1575
- Left = 120
- MultiLine = -1 'True
- TabIndex = 0
- Top = 90
- Width = 3405
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Private Sub Command1_Click()
- Dim stext1 As String
- Dim stext2 As Variant
- stext1 = Text1.Text
- stext2 = Text2.Text
- If Jumbler(stext1, stext2) = False Then
- MsgBox "Registration Information Is Invalid", 48, "Shareware"
- Text1.Text = ""
- Text2.Text = ""
- txtKickOut = ""
- Text1.SetFocus
-
- Else
- MsgBox "Thank You, Registration Accepted", , "Shareware"
-
- WriteIt stext1, stext2
- benable = True
- Unload Me
-
- Form2.Show
-
- End If
- End Sub
- Private Sub Command2_Click()
-
- Unload Me
- Form2.Caption = Form1.Caption
- Form2.Show
-
- End Sub
- Private Sub Command3_Click()
-
- End
-
- End Sub
- Private Sub Form_Load()
-
- Move (Screen.Width - Width) \ 2, (Screen.Height - Height) \ 2
-
-
- End Sub
- Private Sub Text1_Change()
-
- EnableButtons
-
- End Sub
- Private Sub Text2_Change()
-
- EnableButtons
-
- End Sub
- Private Sub EnableButtons()
- If Text1.Text > "" And Text2.Text > "" And txtKickOut.Text > "" Then
- Command1.Enabled = True
-
- Else
- Command1.Enabled = False
-
- End If
- End Sub
- Private Sub Text2_GotFocus()
-
- If txtKickOut.Text = "" Then
-
- txtKickOut.SetFocus
-
- End If
- End Sub
- Private Sub Text3_Change()
-
-
- End Sub
- Private Sub Text2_KeyPress(KeyAscii As Integer)
-
- If KeyAscii = 13 Then
-
- Command1_Click
-
- End If
- End Sub
- Private Sub txtKickOut_Change()
-
- Dim LenText As Integer
-
- LenText = Len(txtKickOut.Text)
-
- If LenText = 3 Then
-
- If Kickout(txtKickOut.Text) = False Then
-
- txtKickOut.Text = ""
- txtKickOut.SetFocus
-
- Else
-
- Text2.SetFocus
-
- End If
- End If
-
- EnableButtons
- End Sub
- Private Sub txtKickOut_GotFocus()
-
- If Text1.Text = "" Then
- Text1.SetFocus
- End If
- End Sub
-