home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 1_2002.ISO / Data / Zips / CODE_UPLOAD1082710212000.psc / Main.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  2000-10-21  |  26.0 KB  |  814 lines

  1. VERSION 5.00
  2. Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
  3. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
  4. Begin VB.Form Main 
  5.    BorderStyle     =   1  'Fixed Single
  6.    Caption         =   "Program For Beginners"
  7.    ClientHeight    =   6135
  8.    ClientLeft      =   45
  9.    ClientTop       =   330
  10.    ClientWidth     =   8295
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    ScaleHeight     =   6135
  14.    ScaleWidth      =   8295
  15.    StartUpPosition =   2  'CenterScreen
  16.    Begin VB.Timer Timer1 
  17.       Left            =   3600
  18.       Top             =   2880
  19.    End
  20.    Begin VB.Frame Frame15 
  21.       Height          =   615
  22.       Left            =   6480
  23.       TabIndex        =   59
  24.       Top             =   4800
  25.       Width           =   1695
  26.       Begin VB.Label Label12 
  27.          Alignment       =   2  'Center
  28.          Caption         =   "Planet Source Code"
  29.          BeginProperty Font 
  30.             Name            =   "MS Sans Serif"
  31.             Size            =   8.25
  32.             Charset         =   0
  33.             Weight          =   400
  34.             Underline       =   -1  'True
  35.             Italic          =   0   'False
  36.             Strikethrough   =   0   'False
  37.          EndProperty
  38.          ForeColor       =   &H00FF0000&
  39.          Height          =   255
  40.          Left            =   120
  41.          TabIndex        =   60
  42.          Top             =   240
  43.          Width           =   1455
  44.       End
  45.    End
  46.    Begin VB.Frame Frame14 
  47.       Height          =   1335
  48.       Left            =   6480
  49.       TabIndex        =   55
  50.       Top             =   3360
  51.       Width           =   1695
  52.       Begin VB.CommandButton Command19 
  53.          Caption         =   "Wordpad"
  54.          Height          =   255
  55.          Left            =   120
  56.          TabIndex        =   58
  57.          Top             =   600
  58.          Width           =   1455
  59.       End
  60.       Begin VB.CommandButton Command18 
  61.          Caption         =   "Solitaire"
  62.          Height          =   255
  63.          Left            =   120
  64.          TabIndex        =   57
  65.          Top             =   960
  66.          Width           =   1455
  67.       End
  68.       Begin VB.CommandButton Command17 
  69.          Caption         =   "Notepad"
  70.          Height          =   255
  71.          Left            =   120
  72.          TabIndex        =   56
  73.          Top             =   240
  74.          Width           =   1455
  75.       End
  76.    End
  77.    Begin MSComDlg.CommonDialog CommonDialog1 
  78.       Left            =   4320
  79.       Top             =   3600
  80.       _ExtentX        =   847
  81.       _ExtentY        =   847
  82.       _Version        =   393216
  83.    End
  84.    Begin VB.Frame Frame13 
  85.       Height          =   735
  86.       Left            =   6480
  87.       TabIndex        =   53
  88.       Top             =   2400
  89.       Width           =   1695
  90.       Begin VB.CommandButton Command16 
  91.          Caption         =   "Click Here"
  92.          Height          =   375
  93.          Left            =   120
  94.          TabIndex        =   54
  95.          Top             =   240
  96.          Width           =   1455
  97.       End
  98.    End
  99.    Begin VB.Frame Frame12 
  100.       Height          =   735
  101.       Left            =   6480
  102.       TabIndex        =   51
  103.       Top             =   1560
  104.       Width           =   1695
  105.       Begin VB.CommandButton Command15 
  106.          Caption         =   "Mouse Over"
  107.          Height          =   375
  108.          Left            =   120
  109.          TabIndex        =   52
  110.          Top             =   240
  111.          Width           =   1455
  112.       End
  113.    End
  114.    Begin VB.Frame Frame11 
  115.       Height          =   615
  116.       Left            =   6480
  117.       TabIndex        =   49
  118.       Top             =   840
  119.       Width           =   1695
  120.       Begin VB.Label Label11 
  121.          Alignment       =   2  'Center
  122.          Caption         =   "Mouse Over"
  123.          ForeColor       =   &H00000000&
  124.          Height          =   255
  125.          Left            =   120
  126.          TabIndex        =   50
  127.          Top             =   240
  128.          Width           =   1455
  129.       End
  130.    End
  131.    Begin VB.Frame Frame10 
  132.       Height          =   615
  133.       Left            =   6480
  134.       TabIndex        =   47
  135.       Top             =   120
  136.       Width           =   1695
  137.       Begin VB.Label Label9 
  138.          Alignment       =   2  'Center
  139.          Caption         =   "Mouse Over"
  140.          Height          =   255
  141.          Left            =   120
  142.          MouseIcon       =   "Main.frx":0000
  143.          MousePointer    =   99  'Custom
  144.          TabIndex        =   48
  145.          Top             =   240
  146.          Width           =   1455
  147.       End
  148.    End
  149.    Begin VB.Frame Frame9 
  150.       Height          =   2055
  151.       Left            =   4200
  152.       TabIndex        =   40
  153.       Top             =   3360
  154.       Width           =   2055
  155.       Begin VB.CommandButton Command14 
  156.          Caption         =   "Filter Help"
  157.          Height          =   255
  158.          Left            =   360
  159.          TabIndex        =   45
  160.          Top             =   1680
  161.          Width           =   1335
  162.       End
  163.       Begin VB.CommandButton Command13 
  164.          Caption         =   "Font"
  165.          Height          =   255
  166.          Left            =   360
  167.          TabIndex        =   44
  168.          Top             =   1320
  169.          Width           =   1335
  170.       End
  171.       Begin VB.CommandButton Command12 
  172.          Caption         =   "Color"
  173.          Height          =   255
  174.          Left            =   360
  175.          TabIndex        =   43
  176.          Top             =   960
  177.          Width           =   1335
  178.       End
  179.       Begin VB.CommandButton Command11 
  180.          Caption         =   "Save"
  181.          Height          =   255
  182.          Left            =   360
  183.          TabIndex        =   42
  184.          Top             =   600
  185.          Width           =   1335
  186.       End
  187.       Begin VB.CommandButton Command10 
  188.          Caption         =   "Open"
  189.          Height          =   255
  190.          Left            =   360
  191.          TabIndex        =   41
  192.          Top             =   240
  193.          Width           =   1335
  194.       End
  195.    End
  196.    Begin VB.CommandButton Command7 
  197.       Caption         =   "Time"
  198.       Height          =   255
  199.       Left            =   360
  200.       TabIndex        =   36
  201.       Top             =   5040
  202.       Width           =   1215
  203.    End
  204.    Begin VB.Frame Frame8 
  205.       Height          =   975
  206.       Left            =   120
  207.       TabIndex        =   34
  208.       Top             =   4440
  209.       Width           =   3855
  210.       Begin VB.CommandButton Command9 
  211.          Caption         =   "Both"
  212.          Height          =   255
  213.          Left            =   1680
  214.          TabIndex        =   39
  215.          Top             =   600
  216.          Width           =   495
  217.       End
  218.       Begin VB.CommandButton Command8 
  219.          Caption         =   "Date"
  220.          Height          =   255
  221.          Left            =   2400
  222.          TabIndex        =   38
  223.          Top             =   600
  224.          Width           =   1215
  225.       End
  226.       Begin VB.Label Label8 
  227.          Alignment       =   2  'Center
  228.          Caption         =   "Date"
  229.          Height          =   255
  230.          Left            =   2160
  231.          TabIndex        =   37
  232.          Top             =   240
  233.          Width           =   1575
  234.       End
  235.       Begin VB.Label Label7 
  236.          Alignment       =   2  'Center
  237.          Caption         =   "Time"
  238.          Height          =   255
  239.          Left            =   120
  240.          TabIndex        =   35
  241.          Top             =   240
  242.          Width           =   1575
  243.       End
  244.    End
  245.    Begin VB.Frame Frame7 
  246.       Height          =   3135
  247.       Left            =   4200
  248.       TabIndex        =   27
  249.       Top             =   120
  250.       Width           =   2055
  251.       Begin VB.TextBox Text3 
  252.          Height          =   285
  253.          Left            =   120
  254.          TabIndex        =   33
  255.          Text            =   "             Text Box"
  256.          Top             =   1920
  257.          Width           =   1815
  258.       End
  259.       Begin VB.ComboBox Combo1 
  260.          Height          =   315
  261.          Left            =   120
  262.          TabIndex        =   31
  263.          Text            =   "          Combo Box"
  264.          Top             =   1200
  265.          Width           =   1815
  266.       End
  267.       Begin VB.CommandButton Command6 
  268.          Caption         =   "Add"
  269.          Height          =   255
  270.          Left            =   360
  271.          TabIndex        =   30
  272.          Top             =   2760
  273.          Width           =   1335
  274.       End
  275.       Begin VB.TextBox Text2 
  276.          Height          =   285
  277.          Left            =   120
  278.          TabIndex        =   29
  279.          Text            =   "Enter Text"
  280.          Top             =   2400
  281.          Width           =   1815
  282.       End
  283.       Begin VB.ListBox List2 
  284.          Height          =   840
  285.          ItemData        =   "Main.frx":030A
  286.          Left            =   120
  287.          List            =   "Main.frx":0311
  288.          TabIndex        =   28
  289.          Top             =   240
  290.          Width           =   1815
  291.       End
  292.       Begin VB.Label Label6 
  293.          Caption         =   "                Label"
  294.          Height          =   255
  295.          Left            =   120
  296.          TabIndex        =   32
  297.          Top             =   1560
  298.          Width           =   1815
  299.       End
  300.    End
  301.    Begin VB.CommandButton Command5 
  302.       Caption         =   "About"
  303.       Height          =   375
  304.       Left            =   720
  305.       TabIndex        =   26
  306.       Top             =   5640
  307.       Width           =   1455
  308.    End
  309.    Begin VB.CommandButton Command4 
  310.       Caption         =   "Exit"
  311.       Height          =   375
  312.       Left            =   6120
  313.       TabIndex        =   25
  314.       Top             =   5640
  315.       Width           =   1455
  316.    End
  317.    Begin VB.Frame Frame6 
  318.       Height          =   975
  319.       Left            =   120
  320.       TabIndex        =   24
  321.       Top             =   2280
  322.       Width           =   1815
  323.       Begin VB.CommandButton Command21 
  324.          Caption         =   "Click Here"
  325.          Height          =   375
  326.          Left            =   120
  327.          TabIndex        =   61
  328.          Top             =   240
  329.          Width           =   1575
  330.       End
  331.       Begin VB.Label Label13 
  332.          Alignment       =   2  'Center
  333.          BackStyle       =   0  'Transparent
  334.          Caption         =   "EXTvgamer@Juno.com"
  335.          BeginProperty Font 
  336.             Name            =   "MS Sans Serif"
  337.             Size            =   8.25
  338.             Charset         =   0
  339.             Weight          =   400
  340.             Underline       =   -1  'True
  341.             Italic          =   0   'False
  342.             Strikethrough   =   0   'False
  343.          EndProperty
  344.          ForeColor       =   &H00FF0000&
  345.          Height          =   255
  346.          Left            =   0
  347.          TabIndex        =   62
  348.          Top             =   650
  349.          Width           =   1815
  350.       End
  351.    End
  352.    Begin VB.Frame Frame5 
  353.       Height          =   1350
  354.       Left            =   2160
  355.       TabIndex        =   18
  356.       Top             =   120
  357.       Width           =   1815
  358.       Begin VB.CheckBox Check4 
  359.          Caption         =   "UnLine"
  360.          Height          =   195
  361.          Left            =   840
  362.          TabIndex        =   22
  363.          Top             =   480
  364.          Width           =   855
  365.       End
  366.       Begin VB.CheckBox Check3 
  367.          Caption         =   "Strike"
  368.          Height          =   195
  369.          Left            =   120
  370.          TabIndex        =   21
  371.          Top             =   480
  372.          Width           =   735
  373.       End
  374.       Begin VB.CheckBox Check2 
  375.          Caption         =   "Italic"
  376.          Height          =   195
  377.          Left            =   840
  378.          TabIndex        =   20
  379.          Top             =   240
  380.          Width           =   735
  381.       End
  382.       Begin VB.CheckBox Check1 
  383.          Caption         =   "Bold"
  384.          Height          =   195
  385.          Left            =   120
  386.          TabIndex        =   19
  387.          Top             =   240
  388.          Width           =   615
  389.       End
  390.       Begin VB.Label Label5 
  391.          Alignment       =   2  'Center
  392.          BorderStyle     =   1  'Fixed Single
  393.          Caption         =   "Hello World"
  394.          BeginProperty Font 
  395.             Name            =   "MS Sans Serif"
  396.             Size            =   9.75
  397.             Charset         =   0
  398.             Weight          =   400
  399.             Underline       =   0   'False
  400.             Italic          =   0   'False
  401.             Strikethrough   =   0   'False
  402.          EndProperty
  403.          Height          =   300
  404.          Left            =   120
  405.          TabIndex        =   23
  406.          Top             =   840
  407.          Width           =   1575
  408.       End
  409.    End
  410.    Begin VB.Frame Frame4 
  411.       Height          =   975
  412.       Left            =   120
  413.       TabIndex        =   14
  414.       Top             =   3360
  415.       Width           =   3855
  416.       Begin VB.HScrollBar HScroll5 
  417.          Height          =   255
  418.          Left            =   240
  419.          Max             =   100
  420.          TabIndex        =   16
  421.          Top             =   240
  422.          Width           =   1575
  423.       End
  424.       Begin MSComctlLib.Slider Slider1 
  425.          Height          =   255
  426.          Left            =   2040
  427.          TabIndex        =   15
  428.          Top             =   240
  429.          Width           =   1575
  430.          _ExtentX        =   2778
  431.          _ExtentY        =   450
  432.          _Version        =   393216
  433.          Max             =   100
  434.          TickStyle       =   3
  435.       End
  436.       Begin MSComctlLib.ProgressBar ProgressBar1 
  437.          Height          =   255
  438.          Left            =   120
  439.          TabIndex        =   17
  440.          Top             =   600
  441.          Width           =   3495
  442.          _ExtentX        =   6165
  443.          _ExtentY        =   450
  444.          _Version        =   393216
  445.          Appearance      =   1
  446.       End
  447.    End
  448.    Begin VB.Frame Frame3 
  449.       Height          =   1695
  450.       Left            =   2160
  451.       TabIndex        =   10
  452.       Top             =   1560
  453.       Width           =   1815
  454.       Begin VB.CommandButton Command1 
  455.          BackColor       =   &H00C0C0C0&
  456.          Caption         =   "Red Background"
  457.          Height          =   375
  458.          Left            =   120
  459.          TabIndex        =   13
  460.          Top             =   240
  461.          Width           =   1575
  462.       End
  463.       Begin VB.CommandButton Command2 
  464.          Caption         =   "Normal Background"
  465.          Height          =   375
  466.          Left            =   120
  467.          TabIndex        =   12
  468.          Top             =   720
  469.          Width           =   1575
  470.       End
  471.       Begin VB.CommandButton Command3 
  472.          Caption         =   "Pick Background"
  473.          Height          =   375
  474.          Left            =   120
  475.          TabIndex        =   11
  476.          Top             =   1200
  477.          Width           =   1575
  478.       End
  479.    End
  480.    Begin VB.Frame Frame2 
  481.       Height          =   1335
  482.       Left            =   120
  483.       TabIndex        =   3
  484.       Top             =   120
  485.       Width           =   1815
  486.       Begin VB.HScrollBar HScroll2 
  487.          Height          =   255
  488.          Left            =   120
  489.          Max             =   255
  490.          TabIndex        =   6
  491.          Top             =   240
  492.          Value           =   1
  493.          Width           =   975
  494.       End
  495.       Begin VB.HScrollBar HScroll3 
  496.          Height          =   255
  497.          Left            =   120
  498.          Max             =   255
  499.          TabIndex        =   5
  500.          Top             =   600
  501.          Value           =   1
  502.          Width           =   975
  503.       End
  504.       Begin VB.HScrollBar HScroll4 
  505.          Height          =   255
  506.          Left            =   120
  507.          Max             =   255
  508.          TabIndex        =   4
  509.          Top             =   960
  510.          Value           =   1
  511.          Width           =   975
  512.       End
  513.       Begin VB.Label Label10 
  514.          Alignment       =   2  'Center
  515.          BackColor       =   &H00000000&
  516.          BorderStyle     =   1  'Fixed Single
  517.          Height          =   1005
  518.          Left            =   1440
  519.          TabIndex        =   46
  520.          Top             =   240
  521.          Width           =   255
  522.       End
  523.       Begin VB.Label Label2 
  524.          Alignment       =   2  'Center
  525.          BackColor       =   &H00000000&
  526.          BorderStyle     =   1  'Fixed Single
  527.          Height          =   285
  528.          Left            =   1200
  529.          TabIndex        =   9
  530.          Top             =   240
  531.          Width           =   135
  532.       End
  533.       Begin VB.Label Label3 
  534.          Alignment       =   2  'Center
  535.          BackColor       =   &H00000000&
  536.          BorderStyle     =   1  'Fixed Single
  537.          Height          =   285
  538.          Left            =   1200
  539.          TabIndex        =   8
  540.          Top             =   600
  541.          Width           =   135
  542.       End
  543.       Begin VB.Label Label4 
  544.          Alignment       =   2  'Center
  545.          BackColor       =   &H00000000&
  546.          BorderStyle     =   1  'Fixed Single
  547.          Height          =   285
  548.          Left            =   1200
  549.          TabIndex        =   7
  550.          Top             =   960
  551.          Width           =   135
  552.       End
  553.    End
  554.    Begin VB.Frame Frame1 
  555.       Height          =   615
  556.       Left            =   120
  557.       TabIndex        =   0
  558.       Top             =   1560
  559.       Width           =   1815
  560.       Begin VB.HScrollBar HScroll1 
  561.          Height          =   255
  562.          Left            =   120
  563.          Max             =   100
  564.          TabIndex        =   1
  565.          Top             =   240
  566.          Width           =   975
  567.       End
  568.       Begin VB.Label Label1 
  569.          Alignment       =   2  'Center
  570.          BorderStyle     =   1  'Fixed Single
  571.          Caption         =   "0"
  572.          Height          =   285
  573.          Left            =   1200
  574.          TabIndex        =   2
  575.          Top             =   240
  576.          Width           =   495
  577.       End
  578.    End
  579. Attribute VB_Name = "Main"
  580. Attribute VB_GlobalNameSpace = False
  581. Attribute VB_Creatable = False
  582. Attribute VB_PredeclaredId = True
  583. Attribute VB_Exposed = False
  584. '*****************************
  585. '*    Beginners Program      *
  586. '*      By Philip Beam       *
  587. '*****************************
  588. 'ALL OF THIS SOURCE CODE WAS WRITTEN BY PHILIP BEAM
  589. '-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
  590. Private Sub Check1_Click()
  591. 'makes label5 bold when check1 is checked (value = 1)
  592.     If Check1.Value = 1 Then
  593.         Label5.FontBold = True
  594.         Exit Sub
  595.     End If
  596.     If Check1.Value = 0 Then
  597.         Label5.FontBold = False
  598.         Exit Sub
  599.     End If
  600. End Sub
  601. Private Sub Check2_Click()
  602. 'makes label5 italic when check2 is checked (value = 1)
  603.     If Check2.Value = 1 Then
  604.         Label5.FontItalic = True
  605.         Exit Sub
  606.     End If
  607.     If Check2.Value = 0 Then
  608.         Label5.FontItalic = False
  609.         Exit Sub
  610.     End If
  611. End Sub
  612. Private Sub Check3_Click()
  613. 'makes label5 Strike Through when check3
  614. 'is checked (value = 1)
  615.     If Check3.Value = 1 Then
  616.         Label5.FontStrikethru = True
  617.         Exit Sub
  618.     End If
  619.     If Check3.Value = 0 Then
  620.         Label5.FontStrikethru = False
  621.         Exit Sub
  622.     End If
  623. End Sub
  624. Private Sub Check4_Click()
  625. 'makes label5 underlined when check4
  626. 'is checked (value = 1)
  627.     If Check4.Value = 1 Then
  628.         Label5.FontUnderline = True
  629.         Exit Sub
  630.     End If
  631.     If Check4.Value = 0 Then
  632.         Label5.FontUnderline = False
  633.         Exit Sub
  634.     End If
  635. End Sub
  636. Private Sub Command1_Click()
  637. 'Changes the form's background color to red
  638.     Me.BackColor = &HFF&
  639. End Sub
  640. Private Sub Command10_Click()
  641. 'Shows the open dialog
  642.     CommonDialog1.ShowOpen
  643.     MsgBox "You opened " & CommonDialog1.FileName & ""
  644. End Sub
  645. Private Sub Command11_Click()
  646. 'Shows the save dialog
  647.     CommonDialog1.ShowSave
  648.     MsgBox "You chose to save as " & CommonDialog1.FileName & ""
  649. End Sub
  650. Private Sub Command12_Click()
  651. 'Shows the color dialog
  652.     CommonDialog1.ShowColor
  653.     MsgBox "You picked (VB color code) " & CommonDialog1.Color & ""
  654. End Sub
  655. Private Sub Command13_Click()
  656. 'shows the font dialog
  657.     CommonDialog1.ShowFont
  658.     MsgBox "You picked the font " & CommonDialog1.FontName & ""
  659. End Sub
  660. Private Sub Command14_Click()
  661. 'This allows only certain file types to be
  662. 'viewed in an open or save dialog
  663. 'The File Type that you type first will be the
  664. 'one that it shows right when you open the dialog
  665. 'Do as follows:
  666. '                           |  File Type 1    | ext.|  File Type 2  |ext.
  667.     CommonDialog1.Filter = "Text Files (*.TXT)|*.TXT|All Files (*.*)|*.*"
  668.     CommonDialog1.ShowOpen
  669. 'This means that when I first open the dialog text
  670. 'files will be the only files being viewed
  671. 'but I can also choose to view all files
  672. End Sub
  673. Private Sub Command15_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  674. 'Changes the button caption to "Click Me" when you
  675. 'move the mouse over the button.
  676.     Main.Command15.Caption = "Click Me"
  677. End Sub
  678. Private Sub Command16_Click()
  679.     MsgBox "This program was made by Philip Beam on Tuesday, July 25, 2000", vbOKOnly, "Beginners Program"
  680. End Sub
  681. Private Sub Command17_Click()
  682. 'Opens notepad on top (not minimized)
  683.     Call Shell("notepad", vbNormalFocus)
  684. End Sub
  685. Private Sub Command18_Click()
  686. 'Opens solitaire on top (not minimized)
  687.     Call Shell("sol", vbNormalFocus)
  688. End Sub
  689. Private Sub Command19_Click()
  690. 'Opens wordpad on top (not minimized)
  691.     Call Shell("write", vbNormalFocus)
  692. End Sub
  693. Private Sub Command2_Click()
  694. 'Changes the form's background color back to default
  695.     Me.BackColor = &H8000000F
  696. End Sub
  697. Private Sub Command21_Click()
  698. 'Makes a beep sound
  699. 'Like when you hit enter in a textbox
  700.     Beep
  701. End Sub
  702. Private Sub Command3_Click()
  703. 'Lets you pick a color for the form's background color
  704.     CommonDialog1.ShowColor
  705.     Me.BackColor = CommonDialog1.Color
  706. End Sub
  707. Private Sub Command4_Click()
  708. 'Exit program
  709.     End
  710. End Sub
  711. Private Sub Command5_Click()
  712. 'About this program
  713.     MsgBox "This Program was made to help beginners program in Visual Basic." & Chr(13) & "By Philip Beam", vbOKOnly, "Beginners Program"
  714. End Sub
  715. Private Sub Command6_Click()
  716. 'Adds Text2.Text to the objects
  717.     List2.AddItem Text2.Text
  718.     Combo1.AddItem Text2.Text
  719.     Text3.Text = Text2.Text
  720.     Label6.Caption = Text2.Text
  721. End Sub
  722. Private Sub Command7_Click()
  723. 'Makes label7 the current time
  724.     Main.Label7.Caption = Time
  725. End Sub
  726. Private Sub Command8_Click()
  727. 'Makes label8 the current date
  728.     Main.Label8.Caption = Date
  729. End Sub
  730. Private Sub Command9_Click()
  731. 'Makes label7 the current time
  732. 'and Makes label8 the current date
  733.     Main.Label7.Caption = Time
  734.     Main.Label8.Caption = Date
  735. End Sub
  736. Private Sub Form_Load()
  737. 'Shows the loading message (before for appears)
  738.     MsgBox "This program was written for beginner use. Maybe even intermediate use. Notice the clock on the title bar. The things that say Mouse Over you will need to put you cursor over to see what it does." & Chr(13) & "By Philip Beam", vbOKOnly, "Begginer Program"
  739. 'Starts the timer that updates the clock on the title bar
  740.     Timer1.Interval = 1
  741. End Sub
  742. Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  743.     Main.Command15.Caption = "Mouse Over"
  744.     Main.Label11.ForeColor = &H80000012
  745. End Sub
  746. Private Sub Form_Unload(Cancel As Integer)
  747. 'Shows how to use the MsgBox with vbYesNo buttons
  748.   Dim yesno As String
  749.     yesno = MsgBox("Exit Beginner Program?", vbYesNo, "Exit?")
  750.     If yesno = vbYes Then
  751.         Exit Sub
  752.     End If
  753.     Cancel = 1
  754. End Sub
  755. Private Sub HScroll1_Scroll()
  756.     Main.Label1.Caption = Main.HScroll1.Value
  757. End Sub
  758. Private Sub HScroll2_Scroll()
  759. 'mixes the 3 scroll bar's values to form one color
  760.     Main.Label10.BackColor = RGB(HScroll2, HScroll3, HScroll4)
  761. 'changes label2 to the color value of Hscroll2 (red)
  762.     Main.Label2.BackColor = RGB(HScroll2, 0, 0)
  763. 'makes label10's background color the form's
  764. 'background color
  765.     Me.BackColor = Label10.BackColor
  766. End Sub
  767. Private Sub HScroll3_Scroll()
  768. 'mixes the 3 scroll bar's values to form one color
  769.     Main.Label10.BackColor = RGB(HScroll2, HScroll3, HScroll4)
  770. 'changes label3 to the color value of Hscroll3 (green)
  771.     Main.Label3.BackColor = RGB(0, HScroll3, 0)
  772. 'makes label10's background color the form's
  773. 'background color
  774.     Me.BackColor = Label10.BackColor
  775. End Sub
  776. Private Sub HScroll4_Scroll()
  777. 'mixes the 3 scroll bar's values to form one color
  778.     Main.Label10.BackColor = RGB(HScroll2, HScroll3, HScroll4)
  779. 'changes label4 to the color value of Hscroll4 (blue)
  780.     Main.Label4.BackColor = RGB(0, 0, HScroll4)
  781. 'makes label10's background color the form's
  782. 'background color
  783.     Me.BackColor = Label10.BackColor
  784. End Sub
  785. Private Sub HScroll5_Scroll()
  786.     Main.ProgressBar1.Value = Main.HScroll5.Value
  787.     Main.Slider1.Value = Main.HScroll5.Value
  788. End Sub
  789. Private Sub Label11_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  790.     Main.Label11.ForeColor = &HFF&
  791. End Sub
  792. Private Sub Label12_Click()
  793. 'Opens the default browser to the planet source code website.
  794.     Call Shell("Start.exe " & "http://www.planetsourcecode.com", 0)
  795. End Sub
  796. Private Sub Label13_Click()
  797. 'Opens the default e-mail program and e-mails me
  798.     Call Shell("Start.exe " & "mailto:EXTvgamer@Juno.com", 0)
  799. End Sub
  800. Private Sub Slider1_Scroll()
  801.     ProgressBar1.Value = Slider1.Value
  802.     HScroll5.Value = Slider1.Value
  803. End Sub
  804. Private Sub Timer1_Timer()
  805. 'Updates the time on the title bar
  806.     Me.Caption = "Program For Beginners  -  " & Time & ""
  807. End Sub
  808. '-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
  809. 'ALL OF THIS SOURCE CODE WAS WRITTEN BY PHILIP BEAM
  810. '*****************************
  811. '*    Beginners Program      *
  812. '*      By Philip Beam       *
  813. '*****************************
  814.