home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 6_2008-2009.ISO / data / zips / SinglePage214275252009.psc / Form1.frm < prev   
Text File  |  2009-02-05  |  48KB  |  1,241 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    Caption         =   "Single Page 12 month Calendar by Ken Foster"
  4.    ClientHeight    =   10020
  5.    ClientLeft      =   60
  6.    ClientTop       =   450
  7.    ClientWidth     =   14250
  8.    Icon            =   "Form1.frx":0000
  9.    LinkTopic       =   "Form1"
  10.    ScaleHeight     =   668
  11.    ScaleMode       =   3  'Pixel
  12.    ScaleWidth      =   950
  13.    StartUpPosition =   2  'CenterScreen
  14.    Begin VB.CommandButton cmdDateRange 
  15.       Caption         =   "Date Range"
  16.       Height          =   465
  17.       Left            =   13230
  18.       TabIndex        =   84
  19.       Top             =   8910
  20.       Width           =   990
  21.    End
  22.    Begin VB.Frame Frame3 
  23.       Caption         =   "Date Range"
  24.       Height          =   1215
  25.       Left            =   12915
  26.       TabIndex        =   79
  27.       Top             =   1650
  28.       Visible         =   0   'False
  29.       Width           =   1200
  30.       Begin VB.CommandButton cmdChange 
  31.          Caption         =   "Change"
  32.          Height          =   285
  33.          Left            =   435
  34.          TabIndex        =   85
  35.          Top             =   855
  36.          Width           =   675
  37.       End
  38.       Begin VB.TextBox txtDateTo 
  39.          Height          =   285
  40.          Left            =   45
  41.          TabIndex        =   81
  42.          Text            =   "20"
  43.          Top             =   840
  44.          Width           =   330
  45.       End
  46.       Begin VB.TextBox txtDateFrom 
  47.          Height          =   285
  48.          Left            =   435
  49.          TabIndex        =   80
  50.          Text            =   "2006"
  51.          Top             =   315
  52.          Width           =   705
  53.       End
  54.       Begin VB.Label Label16 
  55.          Caption         =   "How many"
  56.          Height          =   225
  57.          Left            =   30
  58.          TabIndex        =   83
  59.          Top             =   615
  60.          Width           =   780
  61.       End
  62.       Begin VB.Label Label15 
  63.          Caption         =   "Start:"
  64.          Height          =   195
  65.          Left            =   30
  66.          TabIndex        =   82
  67.          Top             =   360
  68.          Width           =   540
  69.       End
  70.    End
  71.    Begin VB.CommandButton cmdCreateList 
  72.       Caption         =   "Create Holiday List"
  73.       Height          =   705
  74.       Left            =   13230
  75.       TabIndex        =   66
  76.       Top             =   8115
  77.       Width           =   1005
  78.    End
  79.    Begin VB.CommandButton cmdPrinterSelect 
  80.       Caption         =   "Printer Setup"
  81.       Height          =   435
  82.       Left            =   12900
  83.       TabIndex        =   53
  84.       Top             =   570
  85.       Width           =   1215
  86.    End
  87.    Begin VB.CheckBox chkLatin 
  88.       Caption         =   "Monday as first   day of week"
  89.       Height          =   390
  90.       Left            =   11565
  91.       TabIndex        =   52
  92.       Top             =   3030
  93.       Width           =   1395
  94.    End
  95.    Begin VB.CheckBox chkHol 
  96.       Caption         =   "Show Holidays"
  97.       Height          =   255
  98.       Left            =   11565
  99.       TabIndex        =   45
  100.       Top             =   3465
  101.       Width           =   1410
  102.    End
  103.    Begin VB.CheckBox chkColored 
  104.       Caption         =   "Color Calendar"
  105.       Height          =   375
  106.       Left            =   12075
  107.       TabIndex        =   13
  108.       Top             =   4200
  109.       Width           =   960
  110.    End
  111.    Begin VB.CommandButton cmdPreview 
  112.       Caption         =   "Print Preview"
  113.       Height          =   450
  114.       Left            =   12885
  115.       TabIndex        =   43
  116.       Top             =   60
  117.       Width           =   1230
  118.    End
  119.    Begin VB.TextBox txtSaveName 
  120.       Appearance      =   0  'Flat
  121.       Height          =   240
  122.       Left            =   11520
  123.       TabIndex        =   41
  124.       Top             =   855
  125.       Width           =   1230
  126.    End
  127.    Begin VB.Frame Frame1 
  128.       Height          =   3540
  129.       Left            =   12075
  130.       TabIndex        =   14
  131.       Top             =   4500
  132.       Width           =   705
  133.       Begin VB.Label lblMonName 
  134.          BackStyle       =   0  'Transparent
  135.          Caption         =   "Dec"
  136.          Height          =   225
  137.          Index           =   11
  138.          Left            =   315
  139.          TabIndex        =   38
  140.          Top             =   3210
  141.          Width           =   465
  142.       End
  143.       Begin VB.Label lblMonColor 
  144.          Appearance      =   0  'Flat
  145.          BackColor       =   &H00404000&
  146.          BorderStyle     =   1  'Fixed Single
  147.          ForeColor       =   &H80000008&
  148.          Height          =   225
  149.          Index           =   11
  150.          Left            =   60
  151.          TabIndex        =   37
  152.          Top             =   3195
  153.          Width           =   225
  154.       End
  155.       Begin VB.Label lblMonName 
  156.          BackStyle       =   0  'Transparent
  157.          Caption         =   "Nov"
  158.          Height          =   225
  159.          Index           =   10
  160.          Left            =   330
  161.          TabIndex        =   36
  162.          Top             =   2925
  163.          Width           =   465
  164.       End
  165.       Begin VB.Label lblMonColor 
  166.          Appearance      =   0  'Flat
  167.          BackColor       =   &H00004040&
  168.          BorderStyle     =   1  'Fixed Single
  169.          ForeColor       =   &H80000008&
  170.          Height          =   225
  171.          Index           =   10
  172.          Left            =   60
  173.          TabIndex        =   35
  174.          Top             =   2925
  175.          Width           =   225
  176.       End
  177.       Begin VB.Label lblMonName 
  178.          BackStyle       =   0  'Transparent
  179.          Caption         =   "Oct"
  180.          Height          =   225
  181.          Index           =   9
  182.          Left            =   330
  183.          TabIndex        =   34
  184.          Top             =   2670
  185.          Width           =   465
  186.       End
  187.       Begin VB.Label lblMonColor 
  188.          Appearance      =   0  'Flat
  189.          BackColor       =   &H00404080&
  190.          BorderStyle     =   1  'Fixed Single
  191.          ForeColor       =   &H80000008&
  192.          Height          =   225
  193.          Index           =   9
  194.          Left            =   60
  195.          TabIndex        =   33
  196.          Top             =   2655
  197.          Width           =   225
  198.       End
  199.       Begin VB.Label lblMonName 
  200.          BackStyle       =   0  'Transparent
  201.          Caption         =   "Sep"
  202.          Height          =   225
  203.          Index           =   8
  204.          Left            =   330
  205.          TabIndex        =   32
  206.          Top             =   2400
  207.          Width           =   465
  208.       End
  209.       Begin VB.Label lblMonColor 
  210.          Appearance      =   0  'Flat
  211.          BackColor       =   &H000040C0&
  212.          BorderStyle     =   1  'Fixed Single
  213.          ForeColor       =   &H80000008&
  214.          Height          =   225
  215.          Index           =   8
  216.          Left            =   60
  217.          TabIndex        =   31
  218.          Top             =   2385
  219.          Width           =   225
  220.       End
  221.       Begin VB.Label lblMonName 
  222.          BackStyle       =   0  'Transparent
  223.          Caption         =   "Aug"
  224.          Height          =   225
  225.          Index           =   7
  226.          Left            =   330
  227.          TabIndex        =   30
  228.          Top             =   2130
  229.          Width           =   465
  230.       End
  231.       Begin VB.Label lblMonColor 
  232.          Appearance      =   0  'Flat
  233.          BackColor       =   &H00808000&
  234.          BorderStyle     =   1  'Fixed Single
  235.          ForeColor       =   &H80000008&
  236.          Height          =   225
  237.          Index           =   7
  238.          Left            =   60
  239.          TabIndex        =   29
  240.          Top             =   2115
  241.          Width           =   225
  242.       End
  243.       Begin VB.Label lblMonName 
  244.          BackStyle       =   0  'Transparent
  245.          Caption         =   "Jul"
  246.          Height          =   225
  247.          Index           =   6
  248.          Left            =   330
  249.          TabIndex        =   28
  250.          Top             =   1860
  251.          Width           =   465
  252.       End
  253.       Begin VB.Label lblMonColor 
  254.          Appearance      =   0  'Flat
  255.          BackColor       =   &H000000C0&
  256.          BorderStyle     =   1  'Fixed Single
  257.          ForeColor       =   &H80000008&
  258.          Height          =   225
  259.          Index           =   6
  260.          Left            =   60
  261.          TabIndex        =   27
  262.          Top             =   1845
  263.          Width           =   225
  264.       End
  265.       Begin VB.Label lblMonName 
  266.          BackStyle       =   0  'Transparent
  267.          Caption         =   "Jun"
  268.          Height          =   225
  269.          Index           =   5
  270.          Left            =   330
  271.          TabIndex        =   26
  272.          Top             =   1590
  273.          Width           =   465
  274.       End
  275.       Begin VB.Label lblMonColor 
  276.          Appearance      =   0  'Flat
  277.          BackColor       =   &H00800080&
  278.          BorderStyle     =   1  'Fixed Single
  279.          ForeColor       =   &H80000008&
  280.          Height          =   225
  281.          Index           =   5
  282.          Left            =   60
  283.          TabIndex        =   25
  284.          Top             =   1575
  285.          Width           =   225
  286.       End
  287.       Begin VB.Label lblMonName 
  288.          BackStyle       =   0  'Transparent
  289.          Caption         =   "May"
  290.          Height          =   225
  291.          Index           =   4
  292.          Left            =   330
  293.          TabIndex        =   24
  294.          Top             =   1335
  295.          Width           =   465
  296.       End
  297.       Begin VB.Label lblMonColor 
  298.          Appearance      =   0  'Flat
  299.          BackColor       =   &H00000000&
  300.          BorderStyle     =   1  'Fixed Single
  301.          ForeColor       =   &H80000008&
  302.          Height          =   225
  303.          Index           =   4
  304.          Left            =   60
  305.          TabIndex        =   23
  306.          Top             =   1320
  307.          Width           =   225
  308.       End
  309.       Begin VB.Label lblMonName 
  310.          BackStyle       =   0  'Transparent
  311.          Caption         =   "Apr"
  312.          Height          =   225
  313.          Index           =   3
  314.          Left            =   330
  315.          TabIndex        =   22
  316.          Top             =   1080
  317.          Width           =   465
  318.       End
  319.       Begin VB.Label lblMonColor 
  320.          Appearance      =   0  'Flat
  321.          BackColor       =   &H00008080&
  322.          BorderStyle     =   1  'Fixed Single
  323.          ForeColor       =   &H80000008&
  324.          Height          =   225
  325.          Index           =   3
  326.          Left            =   60
  327.          TabIndex        =   21
  328.          Top             =   1065
  329.          Width           =   225
  330.       End
  331.       Begin VB.Label lblMonName 
  332.          BackStyle       =   0  'Transparent
  333.          Caption         =   "Mar"
  334.          Height          =   225
  335.          Index           =   2
  336.          Left            =   330
  337.          TabIndex        =   20
  338.          Top             =   825
  339.          Width           =   465
  340.       End
  341.       Begin VB.Label lblMonColor 
  342.          Appearance      =   0  'Flat
  343.          BackColor       =   &H00004000&
  344.          BorderStyle     =   1  'Fixed Single
  345.          ForeColor       =   &H80000008&
  346.          Height          =   225
  347.          Index           =   2
  348.          Left            =   60
  349.          TabIndex        =   19
  350.          Top             =   810
  351.          Width           =   225
  352.       End
  353.       Begin VB.Label lblMonName 
  354.          BackStyle       =   0  'Transparent
  355.          Caption         =   "Feb"
  356.          Height          =   225
  357.          Index           =   1
  358.          Left            =   330
  359.          TabIndex        =   18
  360.          Top             =   570
  361.          Width           =   465
  362.       End
  363.       Begin VB.Label lblMonColor 
  364.          Appearance      =   0  'Flat
  365.          BackColor       =   &H00C00000&
  366.          BorderStyle     =   1  'Fixed Single
  367.          ForeColor       =   &H80000008&
  368.          Height          =   225
  369.          Index           =   1
  370.          Left            =   60
  371.          TabIndex        =   17
  372.          Top             =   555
  373.          Width           =   225
  374.       End
  375.       Begin VB.Label lblMonName 
  376.          BackStyle       =   0  'Transparent
  377.          Caption         =   "Jan"
  378.          Height          =   225
  379.          Index           =   0
  380.          Left            =   330
  381.          TabIndex        =   16
  382.          Top             =   315
  383.          Width           =   465
  384.       End
  385.       Begin VB.Label lblMonColor 
  386.          Appearance      =   0  'Flat
  387.          BackColor       =   &H000000FF&
  388.          BorderStyle     =   1  'Fixed Single
  389.          ForeColor       =   &H80000008&
  390.          Height          =   225
  391.          Index           =   0
  392.          Left            =   60
  393.          TabIndex        =   15
  394.          Top             =   300
  395.          Width           =   225
  396.       End
  397.    End
  398.    Begin VB.CheckBox chkLabel 
  399.       Caption         =   "Add Label"
  400.       Height          =   225
  401.       Left            =   12960
  402.       TabIndex        =   12
  403.       Top             =   6015
  404.       Width           =   1050
  405.    End
  406.    Begin VB.CommandButton cmdSaveBitmap 
  407.       Caption         =   "Save as Bitmap"
  408.       Height          =   525
  409.       Left            =   11535
  410.       TabIndex        =   10
  411.       Top             =   1155
  412.       Width           =   1185
  413.    End
  414.    Begin VB.CommandButton cmdPrint 
  415.       Caption         =   "Print"
  416.       Height          =   435
  417.       Left            =   11505
  418.       TabIndex        =   9
  419.       Top             =   75
  420.       Width           =   1260
  421.    End
  422.    Begin VB.CommandButton cmdOffset 
  423.       Caption         =   "Enter Offsets"
  424.       Height          =   285
  425.       Left            =   11580
  426.       TabIndex        =   6
  427.       Top             =   2610
  428.       Width           =   1095
  429.    End
  430.    Begin VB.TextBox txtoffsetY 
  431.       Alignment       =   2  'Center
  432.       Appearance      =   0  'Flat
  433.       Height          =   255
  434.       Left            =   12315
  435.       TabIndex        =   5
  436.       Text            =   "0"
  437.       Top             =   2220
  438.       Width           =   360
  439.    End
  440.    Begin VB.TextBox txtoffsetX 
  441.       Alignment       =   2  'Center
  442.       Appearance      =   0  'Flat
  443.       Height          =   255
  444.       Left            =   12300
  445.       TabIndex        =   4
  446.       Text            =   "0"
  447.       Top             =   1860
  448.       Width           =   360
  449.    End
  450.    Begin VB.VScrollBar VS1 
  451.       Height          =   2430
  452.       LargeChange     =   100
  453.       Left            =   11580
  454.       Max             =   290
  455.       SmallChange     =   50
  456.       TabIndex        =   3
  457.       Top             =   5100
  458.       Width           =   330
  459.    End
  460.    Begin VB.ComboBox cboYear 
  461.       Height          =   315
  462.       Left            =   13215
  463.       TabIndex        =   2
  464.       Top             =   1125
  465.       Width           =   885
  466.    End
  467.    Begin VB.PictureBox picCal 
  468.       Appearance      =   0  'Flat
  469.       AutoRedraw      =   -1  'True
  470.       BackColor       =   &H80000005&
  471.       ForeColor       =   &H80000008&
  472.       Height          =   2880
  473.       Left            =   8145
  474.       ScaleHeight     =   190
  475.       ScaleMode       =   3  'Pixel
  476.       ScaleWidth      =   202
  477.       TabIndex        =   1
  478.       Top             =   345
  479.       Visible         =   0   'False
  480.       Width           =   3060
  481.    End
  482.    Begin VB.PictureBox picMain 
  483.       Appearance      =   0  'Flat
  484.       AutoRedraw      =   -1  'True
  485.       BackColor       =   &H80000005&
  486.       BeginProperty Font 
  487.          Name            =   "MS Sans Serif"
  488.          Size            =   9.75
  489.          Charset         =   0
  490.          Weight          =   700
  491.          Underline       =   0   'False
  492.          Italic          =   0   'False
  493.          Strikethrough   =   0   'False
  494.       EndProperty
  495.       ForeColor       =   &H80000008&
  496.       Height          =   13035
  497.       Left            =   45
  498.       ScaleHeight     =   867
  499.       ScaleMode       =   3  'Pixel
  500.       ScaleWidth      =   755
  501.       TabIndex        =   0
  502.       Top             =   15
  503.       Width           =   11355
  504.       Begin VB.Frame Frame2 
  505.          BackColor       =   &H0080C0FF&
  506.          Caption         =   "Create / Edit List"
  507.          Height          =   3975
  508.          Left            =   5430
  509.          TabIndex        =   54
  510.          Top             =   3285
  511.          Visible         =   0   'False
  512.          Width           =   5505
  513.          Begin VB.TextBox txtHolidayName 
  514.             BackColor       =   &H00C0E0FF&
  515.             Height          =   285
  516.             Left            =   135
  517.             TabIndex        =   75
  518.             Top             =   3195
  519.             Width           =   2250
  520.          End
  521.          Begin VB.CommandButton cmdExit 
  522.             Caption         =   "Exit"
  523.             Height          =   300
  524.             Left            =   4830
  525.             TabIndex        =   74
  526.             Top             =   315
  527.             Width           =   525
  528.          End
  529.          Begin VB.OptionButton optAlwaysDay 
  530.             BackColor       =   &H0080C0FF&
  531.             Caption         =   "Last (select day) of Month"
  532.             Height          =   195
  533.             Index           =   7
  534.             Left            =   165
  535.             TabIndex        =   71
  536.             Top             =   2715
  537.             Width           =   2130
  538.          End
  539.          Begin VB.TextBox txtCustDay 
  540.             Alignment       =   2  'Center
  541.             Appearance      =   0  'Flat
  542.             BackColor       =   &H00C0E0FF&
  543.             Enabled         =   0   'False
  544.             Height          =   270
  545.             Left            =   405
  546.             TabIndex        =   70
  547.             Text            =   "1"
  548.             Top             =   2325
  549.             Width           =   270
  550.          End
  551.          Begin VB.ComboBox cboHolMonth 
  552.             BackColor       =   &H00C0E0FF&
  553.             Height          =   315
  554.             Left            =   3315
  555.             TabIndex        =   69
  556.             Text            =   "1 = Jan"
  557.             Top             =   315
  558.             Width           =   1290
  559.          End
  560.          Begin VB.ComboBox cboHolDay 
  561.             BackColor       =   &H00C0E0FF&
  562.             Height          =   315
  563.             Left            =   1695
  564.             TabIndex        =   68
  565.             Text            =   "Sunday"
  566.             Top             =   315
  567.             Width           =   1305
  568.          End
  569.          Begin VB.CommandButton cmdDeleteHol 
  570.             Caption         =   "Delete"
  571.             Height          =   345
  572.             Left            =   1305
  573.             TabIndex        =   67
  574.             Top             =   3555
  575.             Width           =   1020
  576.          End
  577.          Begin VB.ListBox lstHolList 
  578.             BackColor       =   &H00C0E0FF&
  579.             Height          =   2985
  580.             Left            =   2415
  581.             TabIndex        =   63
  582.             Top             =   705
  583.             Width           =   2925
  584.          End
  585.          Begin VB.CommandButton cmdEnterHolDay 
  586.             Caption         =   "Enter"
  587.             Height          =   345
  588.             Left            =   180
  589.             TabIndex        =   62
  590.             Top             =   3555
  591.             Width           =   1005
  592.          End
  593.          Begin VB.OptionButton optAlwaysDay 
  594.             BackColor       =   &H0080C0FF&
  595.             Caption         =   "Custom"
  596.             Height          =   195
  597.             Index           =   6
  598.             Left            =   165
  599.             TabIndex        =   61
  600.             Top             =   2070
  601.             Width           =   885
  602.          End
  603.          Begin VB.OptionButton optAlwaysDay 
  604.             BackColor       =   &H0080C0FF&
  605.             Caption         =   "Always Last day of Month"
  606.             Height          =   240
  607.             Index           =   5
  608.             Left            =   165
  609.             TabIndex        =   60
  610.             Top             =   1785
  611.             Width           =   2115
  612.          End
  613.          Begin VB.OptionButton optAlwaysDay 
  614.             BackColor       =   &H0080C0FF&
  615.             Caption         =   "Always First day of Month"
  616.             Height          =   240
  617.             Index           =   4
  618.             Left            =   165
  619.             TabIndex        =   59
  620.             Top             =   1530
  621.             Width           =   2130
  622.          End
  623.          Begin VB.OptionButton optAlwaysDay 
  624.             BackColor       =   &H0080C0FF&
  625.             Caption         =   "Always the 4th"
  626.             Height          =   240
  627.             Index           =   3
  628.             Left            =   165
  629.             TabIndex        =   58
  630.             Top             =   1170
  631.             Width           =   1350
  632.          End
  633.          Begin VB.OptionButton optAlwaysDay 
  634.             BackColor       =   &H0080C0FF&
  635.             Caption         =   "Always the 3rd"
  636.             Height          =   240
  637.             Index           =   2
  638.             Left            =   165
  639.             TabIndex        =   57
  640.             Top             =   900
  641.             Width           =   1335
  642.          End
  643.          Begin VB.OptionButton optAlwaysDay 
  644.             BackColor       =   &H0080C0FF&
  645.             Caption         =   "Always the 2nd"
  646.             Height          =   240
  647.             Index           =   1
  648.             Left            =   165
  649.             TabIndex        =   56
  650.             Top             =   630
  651.             Width           =   1380
  652.          End
  653.          Begin VB.OptionButton optAlwaysDay 
  654.             BackColor       =   &H0080C0FF&
  655.             Caption         =   "Always the 1st"
  656.             Height          =   225
  657.             Index           =   0
  658.             Left            =   165
  659.             TabIndex        =   55
  660.             Top             =   360
  661.             Value           =   -1  'True
  662.             Width           =   1395
  663.          End
  664.          Begin VB.Label Label13 
  665.             BackColor       =   &H0080C0FF&
  666.             Caption         =   "Click and drag to arrange list."
  667.             Height          =   195
  668.             Left            =   2835
  669.             TabIndex        =   77
  670.             Top             =   3690
  671.             Width           =   2145
  672.          End
  673.          Begin VB.Label Label9 
  674.             BackColor       =   &H0080C0FF&
  675.             Caption         =   "Description:"
  676.             Height          =   255
  677.             Left            =   150
  678.             TabIndex        =   76
  679.             Top             =   2985
  680.             Width           =   1065
  681.          End
  682.          Begin VB.Label lblTotal 
  683.             Appearance      =   0  'Flat
  684.             BackColor       =   &H00C0E0FF&
  685.             BorderStyle     =   1  'Fixed Single
  686.             Caption         =   "Total:"
  687.             ForeColor       =   &H80000008&
  688.             Height          =   225
  689.             Left            =   1635
  690.             TabIndex        =   73
  691.             Top             =   1245
  692.             Width           =   720
  693.          End
  694.          Begin VB.Label Label12 
  695.             BackColor       =   &H0080C0FF&
  696.             Caption         =   "(Enter Day and Go Select Month)"
  697.             Enabled         =   0   'False
  698.             Height          =   420
  699.             Left            =   765
  700.             TabIndex        =   72
  701.             Top             =   2280
  702.             Width           =   1410
  703.          End
  704.          Begin VB.Shape Shape7 
  705.             Height          =   1455
  706.             Left            =   135
  707.             Top             =   1500
  708.             Width           =   2175
  709.          End
  710.          Begin VB.Shape Shape6 
  711.             Height          =   1185
  712.             Left            =   135
  713.             Top             =   285
  714.             Width           =   1470
  715.          End
  716.          Begin VB.Label Label11 
  717.             BackColor       =   &H0080C0FF&
  718.             Caption         =   "Select Month Here"
  719.             Height          =   180
  720.             Left            =   3315
  721.             TabIndex        =   65
  722.             Top             =   120
  723.             Width           =   1350
  724.          End
  725.          Begin VB.Label Label10 
  726.             BackColor       =   &H0080C0FF&
  727.             Caption         =   "Select Day Here"
  728.             Height          =   195
  729.             Left            =   1770
  730.             TabIndex        =   64
  731.             Top             =   120
  732.             Width           =   1230
  733.          End
  734.       End
  735.       Begin VB.TextBox Text1 
  736.          Appearance      =   0  'Flat
  737.          BackColor       =   &H00C0FFFF&
  738.          BeginProperty Font 
  739.             Name            =   "MS Sans Serif"
  740.             Size            =   9.75
  741.             Charset         =   0
  742.             Weight          =   700
  743.             Underline       =   0   'False
  744.             Italic          =   0   'False
  745.             Strikethrough   =   0   'False
  746.          EndProperty
  747.          Height          =   300
  748.          Left            =   240
  749.          TabIndex        =   11
  750.          Top             =   45
  751.          Visible         =   0   'False
  752.          Width           =   3465
  753.       End
  754.       Begin VB.Shape Shape2 
  755.          Height          =   7365
  756.          Left            =   300
  757.          Top             =   540
  758.          Visible         =   0   'False
  759.          Width           =   4770
  760.       End
  761.       Begin VB.Image Image1 
  762.          Height          =   8040
  763.          Left            =   285
  764.          Stretch         =   -1  'True
  765.          Top             =   540
  766.          Visible         =   0   'False
  767.          Width           =   5190
  768.       End
  769.    End
  770.    Begin VB.Label Label14 
  771.       Appearance      =   0  'Flat
  772.       BackColor       =   &H80000005&
  773.       BorderStyle     =   1  'Fixed Single
  774.       Caption         =   "Total:"
  775.       ForeColor       =   &H80000008&
  776.       Height          =   240
  777.       Left            =   12015
  778.       TabIndex        =   78
  779.       Top             =   3720
  780.       Width           =   765
  781.    End
  782.    Begin VB.Shape Shape5 
  783.       Height          =   990
  784.       Left            =   11535
  785.       Top             =   3015
  786.       Width           =   1455
  787.    End
  788.    Begin VB.Shape Shape4 
  789.       Height          =   1410
  790.       Left            =   11475
  791.       Top             =   8115
  792.       Width           =   1725
  793.    End
  794.    Begin VB.Shape Shape3 
  795.       Height          =   2535
  796.       Left            =   12825
  797.       Top             =   5490
  798.       Width           =   1365
  799.    End
  800.    Begin VB.Label Label8 
  801.       Caption         =   "Note:Printing calendar with background other than white uses more ink."
  802.       Height          =   795
  803.       Left            =   11535
  804.       TabIndex        =   51
  805.       Top             =   8700
  806.       Width           =   1680
  807.    End
  808.    Begin VB.Label Label7 
  809.       Caption         =   "BackColor"
  810.       Height          =   195
  811.       Left            =   11805
  812.       TabIndex        =   50
  813.       Top             =   8445
  814.       Width           =   810
  815.    End
  816.    Begin VB.Label lblBkColor 
  817.       Appearance      =   0  'Flat
  818.       BackColor       =   &H80000005&
  819.       BorderStyle     =   1  'Fixed Single
  820.       ForeColor       =   &H80000008&
  821.       Height          =   210
  822.       Left            =   11535
  823.       TabIndex        =   49
  824.       Top             =   8445
  825.       Width           =   210
  826.    End
  827.    Begin VB.Label lblFontColor 
  828.       Appearance      =   0  'Flat
  829.       BackColor       =   &H00000000&
  830.       BorderStyle     =   1  'Fixed Single
  831.       ForeColor       =   &H80000008&
  832.       Height          =   210
  833.       Left            =   11535
  834.       TabIndex        =   48
  835.       Top             =   8175
  836.       Width           =   210
  837.    End
  838.    Begin VB.Label lblFC 
  839.       Caption         =   "Font Color"
  840.       Height          =   240
  841.       Left            =   11790
  842.       TabIndex        =   47
  843.       Top             =   8160
  844.       Width           =   780
  845.    End
  846.    Begin VB.Label lblHolColor 
  847.       Appearance      =   0  'Flat
  848.       BackColor       =   &H000000FF&
  849.       BorderStyle     =   1  'Fixed Single
  850.       ForeColor       =   &H80000008&
  851.       Height          =   180
  852.       Left            =   11580
  853.       TabIndex        =   46
  854.       Top             =   3765
  855.       Width           =   180
  856.    End
  857.    Begin VB.Label Label6 
  858.       Caption         =   "Once set, you can add another label."
  859.       Height          =   645
  860.       Left            =   12945
  861.       TabIndex        =   44
  862.       Top             =   7380
  863.       Width           =   1200
  864.    End
  865.    Begin VB.Label Label5 
  866.       Caption         =   "Save as"
  867.       Height          =   180
  868.       Left            =   11745
  869.       TabIndex        =   42
  870.       Top             =   630
  871.       Width           =   720
  872.    End
  873.    Begin VB.Label Label4 
  874.       Caption         =   "   DO LABELS           LAST"
  875.       ForeColor       =   &H00FF0000&
  876.       Height          =   405
  877.       Left            =   12900
  878.       TabIndex        =   40
  879.       Top             =   5565
  880.       Width           =   1140
  881.    End
  882.    Begin VB.Label Label3 
  883.       Caption         =   "Left click and hold on name label to drag and drop. Press Enter Bar to set."
  884.       Height          =   1020
  885.       Left            =   12945
  886.       TabIndex        =   39
  887.       Top             =   6300
  888.       Width           =   1140
  889.    End
  890.    Begin VB.Shape Shape1 
  891.       Height          =   1215
  892.       Left            =   11535
  893.       Top             =   1740
  894.       Width           =   1200
  895.    End
  896.    Begin VB.Label Label2 
  897.       Caption         =   "Y ="
  898.       BeginProperty Font 
  899.          Name            =   "MS Sans Serif"
  900.          Size            =   8.25
  901.          Charset         =   0
  902.          Weight          =   700
  903.          Underline       =   0   'False
  904.          Italic          =   0   'False
  905.          Strikethrough   =   0   'False
  906.       EndProperty
  907.       Height          =   210
  908.       Left            =   11970
  909.       TabIndex        =   8
  910.       Top             =   2235
  911.       Width           =   330
  912.    End
  913.    Begin VB.Label Label1 
  914.       Caption         =   "X ="
  915.       BeginProperty Font 
  916.          Name            =   "MS Sans Serif"
  917.          Size            =   8.25
  918.          Charset         =   0
  919.          Weight          =   700
  920.          Underline       =   0   'False
  921.          Italic          =   0   'False
  922.          Strikethrough   =   0   'False
  923.       EndProperty
  924.       Height          =   270
  925.       Left            =   11970
  926.       TabIndex        =   7
  927.       Top             =   1875
  928.       Width           =   300
  929.    End
  930. End
  931. Attribute VB_Name = "Form1"
  932. Attribute VB_GlobalNameSpace = False
  933. Attribute VB_Creatable = False
  934. Attribute VB_PredeclaredId = True
  935. Attribute VB_Exposed = False
  936.    'Ken Foster
  937.    '2009
  938.    'use or abuse anyway you like
  939.    
  940.    Option Explicit
  941.    'used with dragging items in listbox
  942.    Private CurrentIndex As Long
  943.    Private LastIndex As Long
  944.    Private LastString As String
  945.    Private LBHwnd As Long
  946.    Private Dragging As Boolean
  947.    Private DragIndex As Long
  948.    Private DragText As String
  949.    Private Const LB_ITEMFROMPOINT As Long = &H1A9
  950.    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
  951.    'more varibles
  952.    Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
  953.    Dim PosX As Single   'used for the offset of calendars
  954.    Dim PosY As Single   'used for the offset of calendars
  955.    Dim yYear As Integer
  956.    Public ColorString As String
  957.    Public HolidayString As String  'stores holiday info for saving
  958.    Dim Oldx As Single   'used to move textbox
  959.    Dim Oldy As Single   'used to move textbox
  960.  
  961. Private Sub Form_Load()
  962.    Dim X As Integer
  963.    LoadColorArray
  964.    cboYear.AddItem txtDateFrom.Text
  965.    For X = 1 To txtDateTo.Text - 1
  966.       cboYear.AddItem txtDateFrom.Text + X
  967.    Next X
  968.    cboYear.Text = txtDateFrom.Text
  969.    
  970.    For X = 1 To 7
  971.       cboHolDay.AddItem WeekdayName(X)
  972.    Next X
  973.    
  974.    For X = 1 To 12
  975.       cboHolMonth.AddItem X & " = " & MonthName(X, True)
  976.    Next X
  977.    SetDropDownHeight Me, cboYear, Int(txtDateTo.Text)
  978.    SetDropDownHeight Me, cboHolMonth, 12
  979.    cboHolMonth.top = 315
  980.    cboHolMonth.Left = 3315
  981.    picCal.AutoRedraw = True
  982.    picCal.ScaleMode = 3
  983.    LBHwnd = lstHolList.hwnd    'used with dragging items in listbox
  984.    Fillit
  985.    Load_CustomColor
  986.   ' LoadColorArray
  987.    Load_HolidayList
  988.    picMain.BackColor = lblBkColor.BackColor
  989.    picCal.BackColor = lblBkColor.BackColor
  990.    Generate
  991. End Sub
  992.  
  993. Private Sub Form_Resize()
  994.    picMain.top = 4
  995.    picMain.Left = 4
  996.    picMain.Height = 950
  997.    picCal.ScaleHeight = 190
  998. End Sub
  999.  
  1000. Private Sub Form_Unload(Cancel As Integer)
  1001.    Dim X As Integer
  1002.    
  1003.    For X = 0 To 11
  1004.       ColorString = ColorString & lblMonColor(X).BackColor & ","
  1005.    Next X
  1006.    ColorString = ColorString & lblHolColor.BackColor & "," & lblFontColor.BackColor & "," & lblBkColor.BackColor & "," & txtDateFrom.Text & "," & txtDateTo.Text
  1007.    Save_Color 0
  1008.    Save_Color 1
  1009.    Unload Me
  1010. End Sub
  1011.  
  1012. Private Sub SaveHolDay_List()
  1013.    Dim X As Integer
  1014.    
  1015.    If lstHolList.ListCount = -1 Then Exit Sub
  1016.    HolidayString = ""
  1017.    For X = 0 To lstHolList.ListCount - 1
  1018.       If X = lstHolList.ListCount - 1 Then
  1019.          HolidayString = HolidayString & lstHolList.List(X)
  1020.       Else
  1021.          HolidayString = HolidayString & lstHolList.List(X) & ","
  1022.       End If
  1023.    Next X
  1024.    
  1025.    Save_HolidayList
  1026.    lstHolList.Clear
  1027.    Load_HolidayList
  1028. End Sub
  1029.  
  1030. Private Sub Generate()
  1031.    Dim StDat As String
  1032.    Dim mMonth As Integer
  1033.    Dim StDG As String
  1034.    Dim cRow As Integer
  1035.    Dim cColumn As Integer
  1036.    Dim ctr As Integer
  1037.    Dim Goforit As Boolean
  1038.    Dim xctr As Integer     'month counter
  1039.    Dim moname As String
  1040.    Dim i As Integer
  1041.    Dim X As Single
  1042.    Dim Y As Single
  1043.    Dim Hol As Integer
  1044.    Dim dn As Integer
  1045.    Dim dname As String
  1046.    Dim DaysInMonth As Integer
  1047.    
  1048.    picCal.FontSize = 8
  1049.    picCal.FontBold = True
  1050.    picCal.ForeColor = lblFontColor.BackColor
  1051.    
  1052.    For xctr = 1 To 12
  1053.       picCal.Picture = LoadPicture()
  1054.       'set name for each month
  1055.       moname = MonthName(xctr, False)
  1056.       picCal.Line (0, picCal.ScaleHeight - 1)-(picCal.ScaleWidth, picCal.ScaleHeight - 1)   'draw line at bottom of each calendar
  1057.       If chkColored = Checked Then picCal.ForeColor = lblMonColor(xctr - 1).BackColor
  1058.       
  1059.       'draw two horizontal lines
  1060.       picCal.Line (0, 41)-(192, 41)
  1061.       picCal.Line (0, 27)-(192, 27)
  1062.       
  1063.       'set position to print month and year
  1064.       picCal.CurrentX = 57
  1065.       picCal.CurrentY = 10
  1066.       StDat = moname & "  " & cboYear.Text
  1067.       mMonth = Month(StDat)                               'get month value
  1068.       yYear = Year(StDat)                                    'get year value
  1069.       DaysInMonth = Day(-1 + DateAdd("m", 1, DateSerial(yYear, mMonth, 1)))   'days in month
  1070.       
  1071.       If chkLatin = 0 Then
  1072.          StDG = DatePart("W", StDat, vbSunday)          'first day of week  english
  1073.       Else
  1074.          StDG = DatePart("W", StDat, vbMonday)         'latin starts day of week on Monday
  1075.       End If
  1076.       
  1077.       Goforit = False                                             'first of month is set so print the rest
  1078.       picCal.Print StDat                                      'print month and year of each calendar
  1079.       
  1080.       'set position to print weekday header
  1081.       For i = 0 To 30 Step 5
  1082.          picCal.CurrentY = 28
  1083.          picCal.CurrentX = 0
  1084.          If chkLatin = 0 Then
  1085.             picCal.Print Tab(i); Left$(StrConv(Format$((i / 5) + 1, "ddd"), vbProperCase), 2)      'english
  1086.          Else
  1087.             picCal.Print Tab(i); Left$(StrConv(Format$((i / 5) + 2, "ddd"), vbProperCase), 2)     'latin
  1088.          End If
  1089.       Next i
  1090.       
  1091.       picCal.ForeColor = lblFontColor.BackColor
  1092.       'set position to start printing days
  1093.       picCal.CurrentY = 45
  1094.       For cRow = 1 To 6
  1095.          
  1096.          For cColumn = 1 To 7
  1097.             If (StDG = cColumn And Not Goforit) Then     'set first day of month
  1098.             ctr = 1
  1099.             Goforit = True
  1100.          End If                                                        'get the rest of the days
  1101.          If (Goforit And IsDate(CStr(ctr) & "-" & mMonth & "-" & yYear)) Then
  1102.             If chkHol.Value = 1 Then                            'load the holidays
  1103.             For Hol = 0 To UBound(strArrayHoliday) - 1 Step 5
  1104.                If strArrayHoliday(Hol) = "FirstDayOfMonth" Then
  1105.                   If xctr = strArrayHoliday(Hol + 1) And ctr = 1 Then picCal.ForeColor = lblHolColor.BackColor
  1106.                ElseIf strArrayHoliday(Hol) = "LastDayOfMonth" Then
  1107.                   If xctr = strArrayHoliday(Hol + 1) And ctr = DaysInMonth Then picCal.ForeColor = lblHolColor.BackColor
  1108.                ElseIf strArrayHoliday(Hol) = "Custom" Then
  1109.                   If xctr = strArrayHoliday(Hol + 1) And ctr = strArrayHoliday(Hol + 2) Then picCal.ForeColor = lblHolColor.BackColor
  1110.                ElseIf strArrayHoliday(Hol + 3) = "EndOfMonthDay" Then
  1111.                   If xctr = strArrayHoliday(Hol + 1) And ctr = Int(Format(GetFirstLastDate(strArrayHoliday(Hol), Int(strArrayHoliday(Hol + 1)), yYear, 1), "dd")) Then picCal.ForeColor = lblHolColor.BackColor
  1112.                Else
  1113.                   If xctr = strArrayHoliday(Hol + 1) And ctr = Int(Format(GetFirstLastDate(strArrayHoliday(Hol), Int(strArrayHoliday(Hol + 1)), yYear, 0), "dd")) And strArrayHoliday(Hol + 2) = 1 Then picCal.ForeColor = lblHolColor.BackColor
  1114.                   If xctr = strArrayHoliday(Hol + 1) And ctr = Int(Format(GetFirstLastDate(strArrayHoliday(Hol), Int(strArrayHoliday(Hol + 1)), yYear, 0), "dd")) + 7 And strArrayHoliday(Hol + 2) = 2 Then picCal.ForeColor = lblHolColor.BackColor
  1115.                   If xctr = strArrayHoliday(Hol + 1) And ctr = Int(Format(GetFirstLastDate(strArrayHoliday(Hol), Int(strArrayHoliday(Hol + 1)), yYear, 0), "dd")) + 14 And strArrayHoliday(Hol + 2) = 3 Then picCal.ForeColor = lblHolColor.BackColor
  1116.                   If xctr = strArrayHoliday(Hol + 1) And ctr = Int(Format(GetFirstLastDate(strArrayHoliday(Hol), Int(strArrayHoliday(Hol + 1)), yYear, 0), "dd")) + 21 And strArrayHoliday(Hol + 2) = 4 Then picCal.ForeColor = lblHolColor.BackColor
  1117.                End If
  1118.             Next Hol
  1119.          End If
  1120.          picCal.Print Str(ctr);
  1121.          picCal.ForeColor = lblFontColor.BackColor
  1122.       End If
  1123.       
  1124.       If cColumn < 7 Then: picCal.Print Tab(cColumn * 5);
  1125.       
  1126.       ctr = ctr + 1
  1127.    Next cColumn
  1128.    picCal.Print            'line space
  1129.    picCal.Print            'line space
  1130. Next cRow
  1131.  
  1132. picCal.Picture = picCal.Image                                'render picture so we can copy it
  1133.  
  1134. 'position and print each month
  1135. X = 40 + X
  1136. Y = 40 + Y
  1137. picMain.PaintPicture picCal.Picture, X + PosX, Y + PosY
  1138. X = IIf(xctr Mod 3 = 0, 0, X + 200)
  1139. Y = IIf(xctr Mod 3 = 0, Y + 160, Y - 404binal(yYelctr M Y + 160, Y - 404binal(0)     r.BackCwMX + 200)
  1140. Y = IIf(xctr Mod 3 = 0, Y + 160, Y - 404binal(yYelctr M Y8od 3 7esrArrayHoliday(Hol + 1) And ct   66rArrayHoliday(Hol), Int(strArrayHoliday(Hol + 1)), yYear, 0), "dd"))n.BackCwMX + 200)
  1141. Y = Ir, 0), "dd"))n.BackCwM4)
  1142. Y))n.BackCwM4)
  1143. Y))n.BackCwM4)
  1144. Y))n.BackCwM4)
  1145. Y))n.BackCwM4)
  1146. Y))n.BackCwM4)
  1147. Y))n.BackCwM4)
  1148. Y))n.BackCwM4)
  1149. Y))n.BackCMod GrE373 7 Then: picCal.PrByVal hwnd As Long, Be)n.BackCwM4)
  1150. Y))n.BackCMod GrE373 7 TMonColor(xctr - 1).BaGrE3 Mod GrE373 7 TMonColor(xctr - 1).BaGrE3 Mod GrE373 n picCal.ForeColor = lblHolColor.BackColor
  1151.                En lblHoen: pie3(d GrE373 7 TMonColor(xctr - 1nColidear, Miday(H &e spHeight - 1)<wrE35'9mace
  1152.    picCal.n
  1153. C 3 1nColidear, Miday(H &e spHeiday(Hol)   picCal.n
  1154. C 3 1nColidear, Mida = IIf(xctr Mod 3 = 0, 0, X + 200)
  1155. Y72 IIa TMonColor(xctr - 1nC(H &e spHeight -olor(iNr - 1nC(H &e spHeight -olor(iN1Hol)   picCath, pspHeight -olor(iNr - 1nC(H &e spHeight -olor(iN1Hol)   picCath, pspHeight -olor(iNr - 1nC(H &e spHeight -olor(iN1Hol)   picCath, pspHdColor
  1156.   -olor(iN1Hol)   pic=p   'set po)
  1157. Y:L   1pic=p   'set po)
  1158. Yeor(iN1Holrrrrrrrrrrrrrrrrrrrrrreset po)Hol)rrrrrr+ Y
  1159. picMain.P    StDG = DatePart("W", StDat, vbMonday)         'rt(r -c ShaO8= IIf(xctrYer       =  ArrayHoliday(Hol + 1) And ctr   =   "Lfkctr - 1nC(H &e spHeight -olor(iNr l5s 
  1160.        If xctr"Lfkctr lor.BackColor
  1161.     =  1S  Height          =   220      HolidayString = HolidayString & lb.P    StDG = DatePart("W", StDat, vbeght          =   220      Holght          =   220      Holght     esrArrayHoliday(+ 1)2)trrrr+ Y
  1162. picMain.2,TactrYer       =  ArrayHoliday(Hol + 1) And ctr   =   "Lfkctr,:hr - 1nC(H &e spHeight iday)9el
  1163.       picCal.P 9.75
  1164.  Heig0A5e9n lblHoen: pie3(d GrErayHoliday(Hol + 1)), yYear, 0),HxctrsBF TMonColor(xctr - 1nColidear, M  'set po)
  1165. Yeor(iN1Holrrrrrrrrrrrrrrrrrrrrrreset po)BackColor
  1166.     =  1S  aae"Lfkctr lor.BackColor
  1167.     =  1S  Height          =   220   meHeight          =   220   meHeiiN1HoleColor
  1168.     t          =   220   meHeiiN1Hlwkctr lor.BackColS  Height          =   220      Holidaylx20   meHeiiN1HoleColor
  1169.     t        =   220   meHeight       ou1o   =   220      Holght     esr     esr     esr        220Holght Y - 404binal(yYel9 =  1S  Height          =   220   9 =  1S  Height           =  esrArrayHoliday(Hol  TM  For Hol = 0 To UBokColtrrr(el)eigl9o esrArrayHoliday(+ 1)s   H  meHeiiN1HoleColor
  1170.     t        =   220Y.2,TactrYer        =  1S  Height          =     g220Y.2l)eigl9o esrArrayHoliday(+ 1)s   H  e0Y.2l o0=    eicCat2Y.2l o0=    eicCat2Y.2l o0=e6cture picCalc2Y.2l o0=    eicCat2Y.2l o0=e6ctE =   630
  1171.    o         ctr - 1nC(H &e spHoi2s8L  =it   'days in month
  1172. 220Y.k a moght -olor(iN1Hol)   picCath, pspHdColor
  1173.   -olor(iN1Hol)   e)s  t    End If
  1174.       rt -olor(iN1Hol)  l + 1) And ctr   =   "Lfkctr iN1Hol)  l + 1) And ctr   = 8re picCalc2Ydrites8L F, pspHdColor
  1175.   -olor(0t As Integer
  1176.    Di
  1177.  
  1178. Private Sub ForpicCalc2 + 3) = "EndOfMonthDay" Thelor
  1179.   -olor(0t As Integer
  1180.    Di
  1181.  
  1182. Private Sub ForpicCalc of week ol7777777 TMo 220   meHeiiNX lor.BackColS  Height         meHeiiN1HoleCol1fMonthDayeight         meHemckColor
  1183.     =  1S  aae"Lfkctr lor.BackColor
  1184.     =  1S  Height          =   220   meHeight          =   220   meHeiiN1HoleCol(
  1185.     =  1SpHdColor
  1186.   -olor(\ear, 0),HxctrsBF TMonColor(xctr -  Heig0A5    a12in Tr = lblFontColor.BacSAs Long, ByVal xSrc As    saDn or.BackCo0tYelY.k a moght4emoght4ee6r.BacSAs Long, ByVal xSrc Ase6rd =   eig0A5    a12in Tr = lb)ackCu    12in To0tYaiN1Hol)  ast Mi 12in Te3(d GrE373 7 TMonColor(xctr - 1nColidear, Miday(H &e spHeight - 1)<wrE35'9mace
  1187.  l0a   14  12in To0Holiday(Hol4    S   13.BackColor
  1188.      eBact AS   13.B   Diy(Hol4    S   13.BackCo,TactrYer        =  1S  Height          =     g220Y.2S  Height          =     g220Y.2S  Height          =     g220Y.2S  Height          =     g220Y.2S  Height          =     g220Y.2S  Height          =     g220e 2     -olor(\ear, 0 ht (    0(sHR= Int(Format(GetFirstLastDate(strArrayHoliday(Hol), Int(strArrayHoliday(Hol + 1)), yYear, 0), "dd")) And strArr7ooloslrArrArrayHoliday(Hol), Intcture(rr7ooloslrArrArrayHIntcture(rr7o           picCal.Print Tab(i); L<) And strArr    w Height          =   o*x. )) Then
  1189.             If chkHol.Ve      =   315
  1190.       F PropnHeind I  315
  1191.     aficm4<) A1)), yYear, 0), "ae"Lfkc4  g220Y.2Stov=  1S  Height          =   220   m)t2Y.2l0g2r   = 8re picCalc2Ydrites8L yYeaaficm4<nHeind I  315
  1192.     aficm4<) A1))1me picC'9mme picC'9mme picC'9mme picC'9mme picC'9mmei1f2ger
  1193.    Di
  1194.  
  1195. Private Sub ForpicCalc2 + 3) = "EndOfMonthDa27y  aficm4<)t  g220Y.2l)eigl9o esrArnAe As StrinTolor       =  =  =  1))1me picC'9mme picC'9mme picC'9m
  1196.    .aht4ee(iN1Hol)   pic=p   '
  1197.      (Hol)nfo for saving
  1198.    Dim Oldx As SaD3 rArnAe As StrinTolor       (  =  nHei21Hol)  l + 1) '9m
  1199.    .a 12in To0tYaiN1Hol)  ast 8 - 1).B'9mme picC'9mme pic Di
  1200.  
  1201. Private Sub ForpicCalc224  g220   t          =   220   meHeiiN1Hlwkctr lor.BackColS  Height  *D  *DV =  m4 C'9Eidth   )  l + 1) '9m
  1202.    .a 12in To0tYaiN1Hol)   (Hr1S  Height          =     g220Y.2S  Height          =     g22       =     g220Y.2S  Height          =     g220Y.2S  Height          =     g220Y.2S  Height          =     g220Y.2S  Height          =     ,w0Hei    g220Y.2S Fy,o0tYaiN1Hol)   (Hr1S  Height          =     g220Y.2S  Height          =     g22       =     g220Y.2S  Height          =     g220r
  1203.    Di
  1204.  
  1205. Private Sub ForpicCaa 12in To0tYaiN1Hol)   (Hr1S  Hst  r.BackColor &14  12in To0Holiday(Hol4    S   1To0Holiday(Hol4    S   1To0Holiday(Hol4    S   1To0Holiday(Hol4       seng, ByVal xSrc As    saD5 + 1) '9m
  1206.    .a 12r7ooloslrArrArraYelctr M Y + 160, Y l + 1) '9m
  1207.    .aHolrrrrrrrrrrrrrrrrrrrrrreset pr1)s   H  e0Y.2l o0=    eicCatOLg22 lVs   H  e0Y.2l u      =   220  ke3,C'9mme picC'9mme picC'9mme p   g220Y.2S  Height Dtr lor.Bed6         =     g220Y.2S  Height          =     ,w0Hei    g220Y.2S Fy,o0tYaiN1Hol)   (Hr1S  Height          =     g220Y.2S 2xl 1)), Hr1S52S 2xl 1)), Hr1S52S 2xl 1)), Hr1 Hr1S52S 2xlMD5 + 1) p(M2S 2xl 1 wy,o0ttYaiN1Hol)   (t6t9m
  1208.    .a 12r7ooloslrArrArraYelglet9m
  1209.    .a 12in To0tYa,w0Hei    g220Y.245eight - 1)<wr3on To0tYa,w02S   g220Y.2S  Height          =     ,w0Hei   
  1210. Y72 IIa TMonColor(x0 Loitr lor.BackColor
  1211.     =  1S  m0 Loitr lo     HolidayString = HolidaySarYer        = ko0tY   =  1S  m0 Loitr lo  1go       =   
  1212. X = 40 + X
  1213. Y = 40 + Y
  1214. picMaiWd) Tocf8HaySaruS0spHdColor
  1215.   -olor(YY
  1216. picMaiWd) Tocf8HayBacNAackColor &14  12in To0Holiday 6pdSy    g220Y.2S  Heigl ( i3alc2Y.2l o0=    eicCat2Y.2l o0=e6=  gTe0   =  8L    kCol    g220ata 1 As IS1go  8+ 160,loriaYelctr1    g220Y.2S       = ko0t e0Y.2l o020Y.2S  Heigl ( i3alc2Y.2l o0=   B(   P    )   y(Hol + Ml3alc2Y.2l o0 = HoruS0spHdColor
  1217. *DPf    g220Y." rest of the dayspDolidayfkctr lor.BackColor
  1218.     =  1S  Height  eeight  eeig, ByVal xSrc As    saD5 + 1) '9m
  1219.    .a 12r7ooloslrArrArraYelctr(    .a 12r7ooloslrArrArravf29=     , m0    3m.BackColor
  1220.     =  1S  Height          =   220      HolidayString = HolidaySt3Sr7o           picCal0dnlglet9m
  1221.    .a 12in  12ru      =   23+ 1) '9m
  1222.    .al220Y." rest of the dayspDolidayYelY.k a Di
  1223.  
  1224. r8L    ear-10(d 12r+   220      HolidayString = HolidaySt3Sr7o           picCal0d)
  1225.        =     ,w0Hei   
  1226. Y7 wEr Mod 3 = w19.a 12   m)t2Y.2l0g.e   =     ,w0Hei   
  1227. Y7 wEr Mod ni2tI   g220Y."e) '9m
  1228.   iabIndex        =   7
  1229.       Top             =   1875
  1230.       Win  12r g2av1 =   220      HolidayString = HolidaySt3Sr7o           p esr     esr     esr        5  g    rin  Height          =     ,w0Hei   
  1231. Y72 IIa TMonColor(x0 Loitr lor.BackColor
  1232.     =  1S  m0 Loitr lo     HolidayString = HolidayS ylxColor(ylxColor(ylxColor(ylxColor(yE35'9maceYY
  1233. picMaiWd) Tocf8H
  1234. picMurArrt
  1235.    '      s   r
  1236.     =  1S  m0 Loitr lo     Ho3  HerinaiWd) Tocf8H
  1237. pal.Image   (ylxCol4  12in To0Holiday 6pdSy    g220Y.2S  Heigl ( i3alc2Y.2l o0=    eicCat2Y.2l o0=e6=  gTe0   =  8L    kCol    g220ata 1 As IS1go  8+idaGidayString = HolidayS ylxColo"oiNX 000&
  1238.       BorderStyle     =   1  'Fixocf8"o0tYa Hedayf"tring = HolidaySt3Sr7o      o0tYa Hedayf"(en 1 As IS1go  8+ 160,8    eicCat2Y.2l o0=e6ctE =   630
  1239.    o   8l02S   g220Y.2S  He2Stxocf8"o0tYa Hedayf"tring = HolidaySt3Sr7o      o0tYa Hedayf"(en 1 As IS1go  8+ 160,8    eicCat2Y.2l o0=e6ctE =   630
  1240.    o   8l02S   g220Y.2S  He2St  22Ya m8s     5  g  e2St  22Ya m8s     5  g  e=  1))1mxoc8  g  0    HolidayString = HolidaySt3Sr7o           p esr  n)g(x0 Loitr lor.BackColo  esr     esr        5  g    rin  Height          =     ,w0g2200ylxCol4  12inI fc 12inI fc 12inI fc 12inI fc 12inI 30  630
  1241.    o   8l02S   g220Y fc 12inI fcS6e)g