home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "*\ACTextBox.vbp"
- Begin VB.Form TestForm
- Caption = "ColorTextBox Control Test Form"
- ClientHeight = 4635
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 5670
- LinkTopic = "Form1"
- ScaleHeight = 4635
- ScaleWidth = 5670
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command1
- Caption = "CLOSE"
- BeginProperty Font
- Name = "Verdana"
- Size = 11.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 435
- Left = 4140
- TabIndex = 17
- Top = 4080
- Width = 1395
- End
- Begin ColorTextBox.CTextBox CTextBox1
- Height = 270
- Index = 1
- Left = 2205
- TabIndex = 1
- Top = 1418
- Width = 2295
- _ExtentX = 4048
- _ExtentY = 476
- BackColor = 255
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = ""
- Mandatory = 1
- End
- Begin ColorTextBox.CTextBox CTextBox1
- Height = 270
- Index = 2
- Left = 2205
- TabIndex = 2
- Top = 1741
- Width = 3135
- _ExtentX = 5530
- _ExtentY = 476
- BackColor = 16777215
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = ""
- End
- Begin ColorTextBox.CTextBox CTextBox1
- Height = 270
- Index = 3
- Left = 2205
- TabIndex = 3
- Top = 2064
- Width = 3135
- _ExtentX = 5530
- _ExtentY = 476
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = ""
- End
- Begin ColorTextBox.CTextBox CTextBox1
- Height = 270
- Index = 4
- Left = 2205
- TabIndex = 4
- Top = 2387
- Width = 2730
- _ExtentX = 4815
- _ExtentY = 476
- BackColor = 255
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = ""
- Mandatory = 1
- End
- Begin ColorTextBox.CTextBox CTextBox1
- Height = 270
- Index = 5
- Left = 2205
- TabIndex = 5
- Top = 2710
- Width = 2745
- _ExtentX = 4842
- _ExtentY = 476
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = ""
- End
- Begin ColorTextBox.CTextBox CTextBox1
- Height = 270
- Index = 6
- Left = 2205
- TabIndex = 6
- Top = 3033
- Width = 2310
- _ExtentX = 4075
- _ExtentY = 476
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = ""
- End
- Begin ColorTextBox.CTextBox CTextBox1
- Height = 270
- Index = 7
- Left = 2205
- TabIndex = 7
- Top = 3360
- Width = 2325
- _ExtentX = 4101
- _ExtentY = 476
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = ""
- End
- Begin ColorTextBox.CTextBox CTextBox1
- Height = 270
- Index = 0
- Left = 2190
- TabIndex = 0
- Top = 1095
- Width = 1755
- _ExtentX = 3096
- _ExtentY = 476
- BackColor = 255
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Text = ""
- Mandatory = 1
- End
- Begin VB.Label Label1
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "First Name"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Left = 1050
- TabIndex = 16
- Top = 1125
- Width = 1005
- End
- Begin VB.Label Label2
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Last Name"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Left = 1050
- TabIndex = 15
- Top = 1455
- Width = 1005
- End
- Begin VB.Label Label3
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Address (line1)"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Left = 630
- TabIndex = 14
- Top = 1770
- Width = 1425
- End
- Begin VB.Label Label4
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Address (line2)"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Left = 630
- TabIndex = 13
- Top = 2100
- Width = 1425
- End
- Begin VB.Label Label5
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "E-Mail"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Left = 1500
- TabIndex = 12
- Top = 2417
- Width = 555
- End
- Begin VB.Label Label6
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "E-Mail (alternate)"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Left = 420
- TabIndex = 11
- Top = 2740
- Width = 1635
- End
- Begin VB.Label Label7
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "Telephone"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Left = 1065
- TabIndex = 10
- Top = 3063
- Width = 990
- End
- Begin VB.Label Label8
- Alignment = 1 'Right Justify
- AutoSize = -1 'True
- Caption = "FAX"
- BeginProperty Font
- Name = "Verdana"
- Size = 9
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 210
- Left = 1710
- TabIndex = 9
- Top = 3390
- Width = 345
- End
- Begin VB.Label Label9
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Caption = "Some fields are required. If left blank, they will be colored red."
- BeginProperty Font
- Name = "Verdana"
- Size = 11.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 3750
- Left = 105
- TabIndex = 8
- Top = 120
- Width = 5445
- End
- Attribute VB_Name = "TestForm"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- ' ******************************
- ' ******************************
- ' ** MASTERING VB6 **
- ' ** by Evangelos Petroutos **
- ' ** SYBEX, 1998 **
- ' ******************************
- ' ******************************
- Private Sub Command1_Click()
- For i = 1 To 7
- If CTextBox1(i).Mandatory = Required And (CTextBox1(i).MandatoryColor = CTextBox1(i).BackColor) Then
- reply = MsgBox("There is at least one empty required field. " & vbCrLf & "Are you sure you want to exit?", vbYesNo)
- If reply = vbYes Then
- End
- Else
- Exit Sub
- End If
- End If
- Next
- MsgBox "Thank you for registering!"
- End
- End Sub
-