home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / VB_Basix767484282002.psc / frmColor.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2002-04-28  |  6.3 KB  |  204 lines

  1. VERSION 5.00
  2. Begin VB.Form frmColor 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "Color Form!"
  5.    ClientHeight    =   3195
  6.    ClientLeft      =   45
  7.    ClientTop       =   330
  8.    ClientWidth     =   4680
  9.    LinkTopic       =   "Form3"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   3195
  13.    ScaleWidth      =   4680
  14.    StartUpPosition =   3  'Windows Default
  15.    Begin VB.CommandButton Command14 
  16.       BackColor       =   &H00FFFFFF&
  17.       Caption         =   "Remember"
  18.       Height          =   375
  19.       Left            =   2760
  20.       TabIndex        =   15
  21.       Top             =   960
  22.       Width           =   1215
  23.    End
  24.    Begin VB.CommandButton Command12 
  25.       Caption         =   "and their text!"
  26.       Height          =   375
  27.       Left            =   1080
  28.       TabIndex        =   14
  29.       Top             =   2640
  30.       Width           =   1215
  31.    End
  32.    Begin VB.CommandButton Command11 
  33.       Caption         =   "Text Boxes"
  34.       Height          =   375
  35.       Left            =   0
  36.       TabIndex        =   13
  37.       Top             =   2640
  38.       Width           =   1095
  39.    End
  40.    Begin VB.CommandButton Command10 
  41.       Caption         =   "Labels Text"
  42.       Height          =   375
  43.       Left            =   2880
  44.       TabIndex        =   12
  45.       Top             =   2280
  46.       Width           =   975
  47.    End
  48.    Begin VB.CommandButton Command9 
  49.       Caption         =   "Labels"
  50.       Height          =   375
  51.       Left            =   2280
  52.       TabIndex        =   11
  53.       Top             =   2280
  54.       Width           =   615
  55.    End
  56.    Begin VB.TextBox Text1 
  57.       Height          =   285
  58.       Left            =   2280
  59.       TabIndex        =   9
  60.       Text            =   "klownz2k2.topcities.com"
  61.       Top             =   2640
  62.       Width           =   1935
  63.    End
  64.    Begin VB.CommandButton Command7 
  65.       Caption         =   "Green"
  66.       Height          =   375
  67.       Left            =   840
  68.       TabIndex        =   8
  69.       Top             =   1320
  70.       Width           =   615
  71.    End
  72.    Begin VB.CommandButton Command6 
  73.       Caption         =   "Magenta"
  74.       Height          =   375
  75.       Left            =   0
  76.       TabIndex        =   7
  77.       Top             =   1320
  78.       Width           =   855
  79.    End
  80.    Begin VB.CommandButton Command8 
  81.       Caption         =   "Yellow"
  82.       Height          =   375
  83.       Left            =   720
  84.       TabIndex        =   6
  85.       Top             =   960
  86.       Width           =   735
  87.    End
  88.    Begin VB.CommandButton Command5 
  89.       Caption         =   "Blue"
  90.       Height          =   375
  91.       Left            =   720
  92.       TabIndex        =   5
  93.       Top             =   600
  94.       Width           =   735
  95.    End
  96.    Begin VB.CommandButton Command4 
  97.       Caption         =   "Red"
  98.       Height          =   375
  99.       Left            =   720
  100.       TabIndex        =   4
  101.       Top             =   240
  102.       Width           =   735
  103.    End
  104.    Begin VB.CommandButton Command3 
  105.       Caption         =   "White"
  106.       Height          =   375
  107.       Left            =   0
  108.       TabIndex        =   3
  109.       Top             =   960
  110.       Width           =   735
  111.    End
  112.    Begin VB.CommandButton Command2 
  113.       Caption         =   "Cyan"
  114.       Height          =   375
  115.       Left            =   0
  116.       TabIndex        =   2
  117.       Top             =   600
  118.       Width           =   735
  119.    End
  120.    Begin VB.CommandButton Command1 
  121.       Caption         =   "Black"
  122.       Height          =   375
  123.       Left            =   0
  124.       TabIndex        =   1
  125.       Top             =   240
  126.       Width           =   735
  127.    End
  128.    Begin VB.Label Label2 
  129.       Caption         =   "Note: This can also be used on"
  130.       Height          =   255
  131.       Left            =   0
  132.       TabIndex        =   10
  133.       Top             =   2400
  134.       Width           =   2415
  135.    End
  136.    Begin VB.Line Line2 
  137.       X1              =   0
  138.       X2              =   1560
  139.       Y1              =   1800
  140.       Y2              =   1800
  141.    End
  142.    Begin VB.Line Line1 
  143.       X1              =   1560
  144.       X2              =   1560
  145.       Y1              =   1800
  146.       Y2              =   0
  147.    End
  148.    Begin VB.Label Label1 
  149.       Caption         =   "Form Color:"
  150.       Height          =   255
  151.       Left            =   0
  152.       TabIndex        =   0
  153.       Top             =   0
  154.       Width           =   855
  155.    End
  156. Attribute VB_Name = "frmColor"
  157. Attribute VB_GlobalNameSpace = False
  158. Attribute VB_Creatable = False
  159. Attribute VB_PredeclaredId = True
  160. Attribute VB_Exposed = False
  161. Private Sub Command1_Click()
  162.     frmColor.BackColor = vbBlack 'Sets the forms backround color to Black.
  163. End Sub
  164. Private Sub Command10_Click()
  165.     Label2.ForeColor = vbGreen 'Sets Label 2's Text color to green.
  166. End Sub
  167. Private Sub Command11_Click()
  168.     Text1.BackColor = vbMagenta 'Sets the backround color of text1 to magenta.
  169. End Sub
  170. Private Sub Command12_Click()
  171.     Text1.ForeColor = vbRed 'Forcolor is the texts color.
  172. End Sub
  173. Private Sub Command13_Click()
  174.     frmColor.Hide 'Hides form
  175.     frmMain.Show 'Shows form
  176. End Sub
  177. Private Sub Command14_Click()
  178.     MsgBox "You do NOT have to use vbRed, blue ect... you can also use HEX codes." 'Pops up a lame looking message box.
  179. End Sub
  180. Private Sub Command2_Click()
  181.     frmColor.BackColor = vbCyan 'backcolor is the backround color which this sets the forms backround color to cyan.
  182. End Sub
  183. Private Sub Command3_Click()
  184.     frmColor.BackColor = vbWhite '&H00FFFFFF& HEX code for white, can be used instead of vbWhite
  185. End Sub
  186. Private Sub Command4_Click()
  187.     frmColor.BackColor = vbRed '&H000000FF& HEX code for red, could be used instead of vbRed.
  188. End Sub
  189. Private Sub Command5_Click()
  190.     frmColor.BackColor = vbBlue 'Sets forms backround color to...blue!
  191. End Sub
  192. Private Sub Command6_Click()
  193.     frmColor.BackColor = vbMagenta 'Sets forms backround color to...Magenta.
  194. End Sub
  195. Private Sub Command7_Click()
  196.     frmColor.BackColor = vbGreen 'Sets forms backround color to...green.
  197. End Sub
  198. Private Sub Command8_Click()
  199.     frmColor.BackColor = vbYellow 'Sets forms backround color to...yellow.
  200. End Sub
  201. Private Sub Command9_Click()
  202.     Label2.BackColor = vbBlack 'Sets the forms backround color to black.
  203. End Sub
  204.