home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / simple6a / form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-09-22  |  41.3 KB  |  1,256 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "EZMove Puzzle!"
  5.    ClientHeight    =   5805
  6.    ClientLeft      =   45
  7.    ClientTop       =   645
  8.    ClientWidth     =   7125
  9.    ClipControls    =   0   'False
  10.    Icon            =   "Form1.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    Moveable        =   0   'False
  14.    ScaleHeight     =   5805
  15.    ScaleWidth      =   7125
  16.    Begin VB.PictureBox Picture2 
  17.       AutoRedraw      =   -1  'True
  18.       BackColor       =   &H8000000C&
  19.       Height          =   5655
  20.       Left            =   0
  21.       ScaleHeight     =   5595
  22.       ScaleWidth      =   6915
  23.       TabIndex        =   0
  24.       Top             =   0
  25.       Width           =   6975
  26.       Begin VB.PictureBox Picture1 
  27.          AutoRedraw      =   -1  'True
  28.          Height          =   1215
  29.          Index           =   0
  30.          Left            =   0
  31.          MousePointer    =   5  'Size
  32.          ScaleHeight     =   1155
  33.          ScaleWidth      =   1875
  34.          TabIndex        =   81
  35.          Top             =   0
  36.          Visible         =   0   'False
  37.          Width           =   1935
  38.       End
  39.       Begin VB.PictureBox Picture1 
  40.          AutoRedraw      =   -1  'True
  41.          Height          =   1215
  42.          Index           =   1
  43.          Left            =   0
  44.          MousePointer    =   5  'Size
  45.          ScaleHeight     =   1155
  46.          ScaleWidth      =   1875
  47.          TabIndex        =   80
  48.          Top             =   120
  49.          Visible         =   0   'False
  50.          Width           =   1935
  51.       End
  52.       Begin VB.PictureBox Picture1 
  53.          AutoRedraw      =   -1  'True
  54.          Height          =   1215
  55.          Index           =   2
  56.          Left            =   0
  57.          MousePointer    =   5  'Size
  58.          ScaleHeight     =   1155
  59.          ScaleWidth      =   1875
  60.          TabIndex        =   79
  61.          Top             =   240
  62.          Visible         =   0   'False
  63.          Width           =   1935
  64.       End
  65.       Begin VB.PictureBox Picture1 
  66.          AutoRedraw      =   -1  'True
  67.          Height          =   1215
  68.          Index           =   3
  69.          Left            =   0
  70.          MousePointer    =   5  'Size
  71.          ScaleHeight     =   1155
  72.          ScaleWidth      =   1875
  73.          TabIndex        =   78
  74.          Top             =   360
  75.          Visible         =   0   'False
  76.          Width           =   1935
  77.       End
  78.       Begin VB.PictureBox Picture1 
  79.          AutoRedraw      =   -1  'True
  80.          Height          =   1215
  81.          Index           =   4
  82.          Left            =   0
  83.          MousePointer    =   5  'Size
  84.          ScaleHeight     =   1155
  85.          ScaleWidth      =   1875
  86.          TabIndex        =   77
  87.          Top             =   480
  88.          Visible         =   0   'False
  89.          Width           =   1935
  90.       End
  91.       Begin VB.PictureBox Picture1 
  92.          AutoRedraw      =   -1  'True
  93.          Height          =   1215
  94.          Index           =   5
  95.          Left            =   0
  96.          MousePointer    =   5  'Size
  97.          ScaleHeight     =   1155
  98.          ScaleWidth      =   1875
  99.          TabIndex        =   76
  100.          Top             =   600
  101.          Visible         =   0   'False
  102.          Width           =   1935
  103.       End
  104.       Begin VB.PictureBox Picture1 
  105.          AutoRedraw      =   -1  'True
  106.          Height          =   1215
  107.          Index           =   6
  108.          Left            =   0
  109.          MousePointer    =   5  'Size
  110.          ScaleHeight     =   1155
  111.          ScaleWidth      =   1875
  112.          TabIndex        =   75
  113.          Top             =   720
  114.          Visible         =   0   'False
  115.          Width           =   1935
  116.       End
  117.       Begin VB.PictureBox Picture1 
  118.          AutoRedraw      =   -1  'True
  119.          Height          =   1215
  120.          Index           =   7
  121.          Left            =   0
  122.          MousePointer    =   5  'Size
  123.          ScaleHeight     =   1155
  124.          ScaleWidth      =   1875
  125.          TabIndex        =   74
  126.          Top             =   840
  127.          Visible         =   0   'False
  128.          Width           =   1935
  129.       End
  130.       Begin VB.PictureBox Picture1 
  131.          AutoRedraw      =   -1  'True
  132.          Height          =   1215
  133.          Index           =   8
  134.          Left            =   0
  135.          MousePointer    =   5  'Size
  136.          ScaleHeight     =   1155
  137.          ScaleWidth      =   1875
  138.          TabIndex        =   73
  139.          Top             =   960
  140.          Visible         =   0   'False
  141.          Width           =   1935
  142.       End
  143.       Begin VB.PictureBox Picture1 
  144.          AutoRedraw      =   -1  'True
  145.          Height          =   1215
  146.          Index           =   9
  147.          Left            =   0
  148.          MousePointer    =   5  'Size
  149.          ScaleHeight     =   1155
  150.          ScaleWidth      =   1875
  151.          TabIndex        =   72
  152.          Top             =   1080
  153.          Visible         =   0   'False
  154.          Width           =   1935
  155.       End
  156.       Begin VB.PictureBox Picture1 
  157.          AutoRedraw      =   -1  'True
  158.          Height          =   1215
  159.          Index           =   10
  160.          Left            =   0
  161.          MousePointer    =   5  'Size
  162.          ScaleHeight     =   1155
  163.          ScaleWidth      =   1875
  164.          TabIndex        =   71
  165.          Top             =   1200
  166.          Visible         =   0   'False
  167.          Width           =   1935
  168.       End
  169.       Begin VB.PictureBox Picture1 
  170.          AutoRedraw      =   -1  'True
  171.          Height          =   1215
  172.          Index           =   11
  173.          Left            =   0
  174.          MousePointer    =   5  'Size
  175.          ScaleHeight     =   1155
  176.          ScaleWidth      =   1875
  177.          TabIndex        =   70
  178.          Top             =   1320
  179.          Visible         =   0   'False
  180.          Width           =   1935
  181.       End
  182.       Begin VB.PictureBox Picture1 
  183.          AutoRedraw      =   -1  'True
  184.          Height          =   1215
  185.          Index           =   12
  186.          Left            =   0
  187.          MousePointer    =   5  'Size
  188.          ScaleHeight     =   1155
  189.          ScaleWidth      =   1875
  190.          TabIndex        =   69
  191.          Top             =   1440
  192.          Visible         =   0   'False
  193.          Width           =   1935
  194.       End
  195.       Begin VB.PictureBox Picture1 
  196.          AutoRedraw      =   -1  'True
  197.          Height          =   1215
  198.          Index           =   13
  199.          Left            =   0
  200.          MousePointer    =   5  'Size
  201.          ScaleHeight     =   1155
  202.          ScaleWidth      =   1875
  203.          TabIndex        =   68
  204.          Top             =   1560
  205.          Visible         =   0   'False
  206.          Width           =   1935
  207.       End
  208.       Begin VB.PictureBox Picture1 
  209.          AutoRedraw      =   -1  'True
  210.          Height          =   1215
  211.          Index           =   14
  212.          Left            =   0
  213.          MousePointer    =   5  'Size
  214.          ScaleHeight     =   1155
  215.          ScaleWidth      =   1875
  216.          TabIndex        =   67
  217.          Top             =   1680
  218.          Visible         =   0   'False
  219.          Width           =   1935
  220.       End
  221.       Begin VB.PictureBox Picture1 
  222.          AutoRedraw      =   -1  'True
  223.          Height          =   1215
  224.          Index           =   15
  225.          Left            =   0
  226.          MousePointer    =   5  'Size
  227.          ScaleHeight     =   1155
  228.          ScaleWidth      =   1875
  229.          TabIndex        =   66
  230.          Top             =   1800
  231.          Visible         =   0   'False
  232.          Width           =   1935
  233.       End
  234.       Begin VB.PictureBox Picture1 
  235.          AutoRedraw      =   -1  'True
  236.          Height          =   1215
  237.          Index           =   16
  238.          Left            =   0
  239.          MousePointer    =   5  'Size
  240.          ScaleHeight     =   1155
  241.          ScaleWidth      =   1875
  242.          TabIndex        =   65
  243.          Top             =   1920
  244.          Visible         =   0   'False
  245.          Width           =   1935
  246.       End
  247.       Begin VB.PictureBox Picture1 
  248.          AutoRedraw      =   -1  'True
  249.          Height          =   1215
  250.          Index           =   17
  251.          Left            =   0
  252.          MousePointer    =   5  'Size
  253.          ScaleHeight     =   1155
  254.          ScaleWidth      =   1875
  255.          TabIndex        =   64
  256.          Top             =   2040
  257.          Visible         =   0   'False
  258.          Width           =   1935
  259.       End
  260.       Begin VB.PictureBox Picture1 
  261.          AutoRedraw      =   -1  'True
  262.          Height          =   1215
  263.          Index           =   18
  264.          Left            =   0
  265.          MousePointer    =   5  'Size
  266.          ScaleHeight     =   1155
  267.          ScaleWidth      =   1875
  268.          TabIndex        =   63
  269.          Top             =   2160
  270.          Visible         =   0   'False
  271.          Width           =   1935
  272.       End
  273.       Begin VB.PictureBox Picture1 
  274.          AutoRedraw      =   -1  'True
  275.          Height          =   1215
  276.          Index           =   19
  277.          Left            =   0
  278.          MousePointer    =   5  'Size
  279.          ScaleHeight     =   1155
  280.          ScaleWidth      =   1875
  281.          TabIndex        =   62
  282.          Top             =   2280
  283.          Visible         =   0   'False
  284.          Width           =   1935
  285.       End
  286.       Begin VB.PictureBox Picture1 
  287.          AutoRedraw      =   -1  'True
  288.          Height          =   1215
  289.          Index           =   20
  290.          Left            =   0
  291.          MousePointer    =   5  'Size
  292.          ScaleHeight     =   1155
  293.          ScaleWidth      =   1875
  294.          TabIndex        =   61
  295.          Top             =   2400
  296.          Visible         =   0   'False
  297.          Width           =   1935
  298.       End
  299.       Begin VB.PictureBox Picture1 
  300.          AutoRedraw      =   -1  'True
  301.          Height          =   1215
  302.          Index           =   21
  303.          Left            =   0
  304.          MousePointer    =   5  'Size
  305.          ScaleHeight     =   1155
  306.          ScaleWidth      =   1875
  307.          TabIndex        =   60
  308.          Top             =   2520
  309.          Visible         =   0   'False
  310.          Width           =   1935
  311.       End
  312.       Begin VB.PictureBox Picture1 
  313.          AutoRedraw      =   -1  'True
  314.          Height          =   1215
  315.          Index           =   22
  316.          Left            =   0
  317.          MousePointer    =   5  'Size
  318.          ScaleHeight     =   1155
  319.          ScaleWidth      =   1875
  320.          TabIndex        =   59
  321.          Top             =   2640
  322.          Visible         =   0   'False
  323.          Width           =   1935
  324.       End
  325.       Begin VB.PictureBox Picture1 
  326.          AutoRedraw      =   -1  'True
  327.          Height          =   1215
  328.          Index           =   23
  329.          Left            =   0
  330.          MousePointer    =   5  'Size
  331.          ScaleHeight     =   1155
  332.          ScaleWidth      =   1875
  333.          TabIndex        =   58
  334.          Top             =   2760
  335.          Visible         =   0   'False
  336.          Width           =   1935
  337.       End
  338.       Begin VB.PictureBox Picture1 
  339.          AutoRedraw      =   -1  'True
  340.          Height          =   1215
  341.          Index           =   24
  342.          Left            =   0
  343.          MousePointer    =   5  'Size
  344.          ScaleHeight     =   1155
  345.          ScaleWidth      =   1875
  346.          TabIndex        =   57
  347.          Top             =   2880
  348.          Visible         =   0   'False
  349.          Width           =   1935
  350.       End
  351.       Begin VB.PictureBox Picture1 
  352.          AutoRedraw      =   -1  'True
  353.          Height          =   1215
  354.          Index           =   25
  355.          Left            =   0
  356.          MousePointer    =   5  'Size
  357.          ScaleHeight     =   1155
  358.          ScaleWidth      =   1875
  359.          TabIndex        =   56
  360.          Top             =   3000
  361.          Visible         =   0   'False
  362.          Width           =   1935
  363.       End
  364.       Begin VB.PictureBox Picture1 
  365.          AutoRedraw      =   -1  'True
  366.          Height          =   1215
  367.          Index           =   26
  368.          Left            =   0
  369.          MousePointer    =   5  'Size
  370.          ScaleHeight     =   1155
  371.          ScaleWidth      =   1875
  372.          TabIndex        =   55
  373.          Top             =   3120
  374.          Visible         =   0   'False
  375.          Width           =   1935
  376.       End
  377.       Begin VB.PictureBox Picture1 
  378.          AutoRedraw      =   -1  'True
  379.          Height          =   1215
  380.          Index           =   27
  381.          Left            =   0
  382.          MousePointer    =   5  'Size
  383.          ScaleHeight     =   1155
  384.          ScaleWidth      =   1875
  385.          TabIndex        =   54
  386.          Top             =   3240
  387.          Visible         =   0   'False
  388.          Width           =   1935
  389.       End
  390.       Begin VB.PictureBox Picture1 
  391.          AutoRedraw      =   -1  'True
  392.          Height          =   1215
  393.          Index           =   28
  394.          Left            =   0
  395.          MousePointer    =   5  'Size
  396.          ScaleHeight     =   1155
  397.          ScaleWidth      =   1875
  398.          TabIndex        =   53
  399.          Top             =   3360
  400.          Visible         =   0   'False
  401.          Width           =   1935
  402.       End
  403.       Begin VB.PictureBox Picture1 
  404.          AutoRedraw      =   -1  'True
  405.          Height          =   1215
  406.          Index           =   29
  407.          Left            =   0
  408.          MousePointer    =   5  'Size
  409.          ScaleHeight     =   1155
  410.          ScaleWidth      =   1875
  411.          TabIndex        =   52
  412.          Top             =   3480
  413.          Visible         =   0   'False
  414.          Width           =   1935
  415.       End
  416.       Begin VB.PictureBox Picture1 
  417.          AutoRedraw      =   -1  'True
  418.          Height          =   1215
  419.          Index           =   30
  420.          Left            =   0
  421.          MousePointer    =   5  'Size
  422.          ScaleHeight     =   1155
  423.          ScaleWidth      =   1875
  424.          TabIndex        =   51
  425.          Top             =   3600
  426.          Visible         =   0   'False
  427.          Width           =   1935
  428.       End
  429.       Begin VB.PictureBox Picture1 
  430.          AutoRedraw      =   -1  'True
  431.          Height          =   1215
  432.          Index           =   31
  433.          Left            =   0
  434.          MousePointer    =   5  'Size
  435.          ScaleHeight     =   1155
  436.          ScaleWidth      =   1875
  437.          TabIndex        =   50
  438.          Top             =   3720
  439.          Visible         =   0   'False
  440.          Width           =   1935
  441.       End
  442.       Begin VB.PictureBox Picture1 
  443.          AutoRedraw      =   -1  'True
  444.          Height          =   1215
  445.          Index           =   32
  446.          Left            =   0
  447.          MousePointer    =   5  'Size
  448.          ScaleHeight     =   1155
  449.          ScaleWidth      =   1875
  450.          TabIndex        =   49
  451.          Top             =   3840
  452.          Visible         =   0   'False
  453.          Width           =   1935
  454.       End
  455.       Begin VB.PictureBox Picture1 
  456.          AutoRedraw      =   -1  'True
  457.          Height          =   1215
  458.          Index           =   33
  459.          Left            =   0
  460.          MousePointer    =   5  'Size
  461.          ScaleHeight     =   1155
  462.          ScaleWidth      =   1875
  463.          TabIndex        =   48
  464.          Top             =   3960
  465.          Visible         =   0   'False
  466.          Width           =   1935
  467.       End
  468.       Begin VB.PictureBox Picture1 
  469.          AutoRedraw      =   -1  'True
  470.          Height          =   1215
  471.          Index           =   34
  472.          Left            =   0
  473.          MousePointer    =   5  'Size
  474.          ScaleHeight     =   1155
  475.          ScaleWidth      =   1875
  476.          TabIndex        =   47
  477.          Top             =   4080
  478.          Visible         =   0   'False
  479.          Width           =   1935
  480.       End
  481.       Begin VB.PictureBox Picture1 
  482.          AutoRedraw      =   -1  'True
  483.          Height          =   1215
  484.          Index           =   35
  485.          Left            =   0
  486.          MousePointer    =   5  'Size
  487.          ScaleHeight     =   1155
  488.          ScaleWidth      =   1875
  489.          TabIndex        =   46
  490.          Top             =   4200
  491.          Visible         =   0   'False
  492.          Width           =   1935
  493.       End
  494.       Begin VB.PictureBox Picture1 
  495.          AutoRedraw      =   -1  'True
  496.          Height          =   1215
  497.          Index           =   36
  498.          Left            =   2040
  499.          MousePointer    =   5  'Size
  500.          ScaleHeight     =   1155
  501.          ScaleWidth      =   1875
  502.          TabIndex        =   45
  503.          Top             =   0
  504.          Visible         =   0   'False
  505.          Width           =   1935
  506.       End
  507.       Begin VB.PictureBox Picture1 
  508.          AutoRedraw      =   -1  'True
  509.          Height          =   1215
  510.          Index           =   37
  511.          Left            =   2040
  512.          MousePointer    =   5  'Size
  513.          ScaleHeight     =   1155
  514.          ScaleWidth      =   1875
  515.          TabIndex        =   44
  516.          Top             =   120
  517.          Visible         =   0   'False
  518.          Width           =   1935
  519.       End
  520.       Begin VB.PictureBox Picture1 
  521.          AutoRedraw      =   -1  'True
  522.          Height          =   1215
  523.          Index           =   38
  524.          Left            =   2040
  525.          MousePointer    =   5  'Size
  526.          ScaleHeight     =   1155
  527.          ScaleWidth      =   1875
  528.          TabIndex        =   43
  529.          Top             =   240
  530.          Visible         =   0   'False
  531.          Width           =   1935
  532.       End
  533.       Begin VB.PictureBox Picture1 
  534.          AutoRedraw      =   -1  'True
  535.          Height          =   1215
  536.          Index           =   39
  537.          Left            =   2040
  538.          MousePointer    =   5  'Size
  539.          ScaleHeight     =   1155
  540.          ScaleWidth      =   1875
  541.          TabIndex        =   42
  542.          Top             =   360
  543.          Visible         =   0   'False
  544.          Width           =   1935
  545.       End
  546.       Begin VB.PictureBox Picture1 
  547.          AutoRedraw      =   -1  'True
  548.          Height          =   1215
  549.          Index           =   40
  550.          Left            =   2040
  551.          MousePointer    =   5  'Size
  552.          ScaleHeight     =   1155
  553.          ScaleWidth      =   1875
  554.          TabIndex        =   41
  555.          Top             =   480
  556.          Visible         =   0   'False
  557.          Width           =   1935
  558.       End
  559.       Begin VB.PictureBox Picture1 
  560.          AutoRedraw      =   -1  'True
  561.          Height          =   1215
  562.          Index           =   41
  563.          Left            =   2040
  564.          MousePointer    =   5  'Size
  565.          ScaleHeight     =   1155
  566.          ScaleWidth      =   1875
  567.          TabIndex        =   40
  568.          Top             =   600
  569.          Visible         =   0   'False
  570.          Width           =   1935
  571.       End
  572.       Begin VB.PictureBox Picture1 
  573.          AutoRedraw      =   -1  'True
  574.          Height          =   1215
  575.          Index           =   42
  576.          Left            =   2040
  577.          MousePointer    =   5  'Size
  578.          ScaleHeight     =   1155
  579.          ScaleWidth      =   1875
  580.          TabIndex        =   39
  581.          Top             =   720
  582.          Visible         =   0   'False
  583.          Width           =   1935
  584.       End
  585.       Begin VB.PictureBox Picture1 
  586.          AutoRedraw      =   -1  'True
  587.          Height          =   1215
  588.          Index           =   43
  589.          Left            =   2040
  590.          MousePointer    =   5  'Size
  591.          ScaleHeight     =   1155
  592.          ScaleWidth      =   1875
  593.          TabIndex        =   38
  594.          Top             =   840
  595.          Visible         =   0   'False
  596.          Width           =   1935
  597.       End
  598.       Begin VB.PictureBox Picture1 
  599.          AutoRedraw      =   -1  'True
  600.          Height          =   1215
  601.          Index           =   44
  602.          Left            =   2040
  603.          MousePointer    =   5  'Size
  604.          ScaleHeight     =   1155
  605.          ScaleWidth      =   1875
  606.          TabIndex        =   37
  607.          Top             =   960
  608.          Visible         =   0   'False
  609.          Width           =   1935
  610.       End
  611.       Begin VB.PictureBox Picture1 
  612.          AutoRedraw      =   -1  'True
  613.          Height          =   1215
  614.          Index           =   45
  615.          Left            =   2040
  616.          MousePointer    =   5  'Size
  617.          ScaleHeight     =   1155
  618.          ScaleWidth      =   1875
  619.          TabIndex        =   36
  620.          Top             =   1080
  621.          Visible         =   0   'False
  622.          Width           =   1935
  623.       End
  624.       Begin VB.PictureBox Picture1 
  625.          AutoRedraw      =   -1  'True
  626.          Height          =   1215
  627.          Index           =   46
  628.          Left            =   2040
  629.          MousePointer    =   5  'Size
  630.          ScaleHeight     =   1155
  631.          ScaleWidth      =   1875
  632.          TabIndex        =   35
  633.          Top             =   1200
  634.          Visible         =   0   'False
  635.          Width           =   1935
  636.       End
  637.       Begin VB.PictureBox Picture1 
  638.          AutoRedraw      =   -1  'True
  639.          Height          =   1215
  640.          Index           =   47
  641.          Left            =   2040
  642.          MousePointer    =   5  'Size
  643.          ScaleHeight     =   1155
  644.          ScaleWidth      =   1875
  645.          TabIndex        =   34
  646.          Top             =   1320
  647.          Visible         =   0   'False
  648.          Width           =   1935
  649.       End
  650.       Begin VB.PictureBox Picture1 
  651.          AutoRedraw      =   -1  'True
  652.          Height          =   1215
  653.          Index           =   48
  654.          Left            =   2040
  655.          MousePointer    =   5  'Size
  656.          ScaleHeight     =   1155
  657.          ScaleWidth      =   1875
  658.          TabIndex        =   33
  659.          Top             =   1440
  660.          Visible         =   0   'False
  661.          Width           =   1935
  662.       End
  663.       Begin VB.PictureBox Picture1 
  664.          AutoRedraw      =   -1  'True
  665.          Height          =   1215
  666.          Index           =   49
  667.          Left            =   2040
  668.          MousePointer    =   5  'Size
  669.          ScaleHeight     =   1155
  670.          ScaleWidth      =   1875
  671.          TabIndex        =   32
  672.          Top             =   1560
  673.          Visible         =   0   'False
  674.          Width           =   1935
  675.       End
  676.       Begin VB.PictureBox Picture1 
  677.          AutoRedraw      =   -1  'True
  678.          Height          =   1215
  679.          Index           =   50
  680.          Left            =   2040
  681.          MousePointer    =   5  'Size
  682.          ScaleHeight     =   1155
  683.          ScaleWidth      =   1875
  684.          TabIndex        =   31
  685.          Top             =   1680
  686.          Visible         =   0   'False
  687.          Width           =   1935
  688.       End
  689.       Begin VB.PictureBox Picture1 
  690.          AutoRedraw      =   -1  'True
  691.          Height          =   1215
  692.          Index           =   51
  693.          Left            =   2040
  694.          MousePointer    =   5  'Size
  695.          ScaleHeight     =   1155
  696.          ScaleWidth      =   1875
  697.          TabIndex        =   30
  698.          Top             =   1800
  699.          Visible         =   0   'False
  700.          Width           =   1935
  701.       End
  702.       Begin VB.PictureBox Picture1 
  703.          AutoRedraw      =   -1  'True
  704.          Height          =   1215
  705.          Index           =   52
  706.          Left            =   2040
  707.          MousePointer    =   5  'Size
  708.          ScaleHeight     =   1155
  709.          ScaleWidth      =   1875
  710.          TabIndex        =   29
  711.          Top             =   1920
  712.          Visible         =   0   'False
  713.          Width           =   1935
  714.       End
  715.       Begin VB.PictureBox Picture1 
  716.          AutoRedraw      =   -1  'True
  717.          Height          =   1215
  718.          Index           =   53
  719.          Left            =   2040
  720.          MousePointer    =   5  'Size
  721.          ScaleHeight     =   1155
  722.          ScaleWidth      =   1875
  723.          TabIndex        =   28
  724.          Top             =   2040
  725.          Visible         =   0   'False
  726.          Width           =   1935
  727.       End
  728.       Begin VB.PictureBox Picture1 
  729.          AutoRedraw      =   -1  'True
  730.          Height          =   1215
  731.          Index           =   54
  732.          Left            =   2040
  733.          MousePointer    =   5  'Size
  734.          ScaleHeight     =   1155
  735.          ScaleWidth      =   1875
  736.          TabIndex        =   27
  737.          Top             =   2160
  738.          Visible         =   0   'False
  739.          Width           =   1935
  740.       End
  741.       Begin VB.PictureBox Picture1 
  742.          AutoRedraw      =   -1  'True
  743.          Height          =   1215
  744.          Index           =   55
  745.          Left            =   2040
  746.          MousePointer    =   5  'Size
  747.          ScaleHeight     =   1155
  748.          ScaleWidth      =   1875
  749.          TabIndex        =   26
  750.          Top             =   2280
  751.          Visible         =   0   'False
  752.          Width           =   1935
  753.       End
  754.       Begin VB.PictureBox Picture1 
  755.          AutoRedraw      =   -1  'True
  756.          Height          =   1215
  757.          Index           =   56
  758.          Left            =   2040
  759.          MousePointer    =   5  'Size
  760.          ScaleHeight     =   1155
  761.          ScaleWidth      =   1875
  762.          TabIndex        =   25
  763.          Top             =   2400
  764.          Visible         =   0   'False
  765.          Width           =   1935
  766.       End
  767.       Begin VB.PictureBox Picture1 
  768.          AutoRedraw      =   -1  'True
  769.          Height          =   1215
  770.          Index           =   57
  771.          Left            =   2040
  772.          MousePointer    =   5  'Size
  773.          ScaleHeight     =   1155
  774.          ScaleWidth      =   1875
  775.          TabIndex        =   24
  776.          Top             =   2520
  777.          Visible         =   0   'False
  778.          Width           =   1935
  779.       End
  780.       Begin VB.PictureBox Picture1 
  781.          AutoRedraw      =   -1  'True
  782.          Height          =   1215
  783.          Index           =   58
  784.          Left            =   2040
  785.          MousePointer    =   5  'Size
  786.          ScaleHeight     =   1155
  787.          ScaleWidth      =   1875
  788.          TabIndex        =   23
  789.          Top             =   2640
  790.          Visible         =   0   'False
  791.          Width           =   1935
  792.       End
  793.       Begin VB.PictureBox Picture1 
  794.          AutoRedraw      =   -1  'True
  795.          Height          =   1215
  796.          Index           =   59
  797.          Left            =   2040
  798.          MousePointer    =   5  'Size
  799.          ScaleHeight     =   1155
  800.          ScaleWidth      =   1875
  801.          TabIndex        =   22
  802.          Top             =   2760
  803.          Visible         =   0   'False
  804.          Width           =   1935
  805.       End
  806.       Begin VB.PictureBox Picture1 
  807.          AutoRedraw      =   -1  'True
  808.          Height          =   1215
  809.          Index           =   60
  810.          Left            =   2040
  811.          MousePointer    =   5  'Size
  812.          ScaleHeight     =   1155
  813.          ScaleWidth      =   1875
  814.          TabIndex        =   21
  815.          Top             =   2880
  816.          Visible         =   0   'False
  817.          Width           =   1935
  818.       End
  819.       Begin VB.PictureBox Picture1 
  820.          AutoRedraw      =   -1  'True
  821.          Height          =   1215
  822.          Index           =   61
  823.          Left            =   2040
  824.          MousePointer    =   5  'Size
  825.          ScaleHeight     =   1155
  826.          ScaleWidth      =   1875
  827.          TabIndex        =   20
  828.          Top             =   3000
  829.          Visible         =   0   'False
  830.          Width           =   1935
  831.       End
  832.       Begin VB.PictureBox Picture1 
  833.          AutoRedraw      =   -1  'True
  834.          Height          =   1215
  835.          Index           =   62
  836.          Left            =   2040
  837.          MousePointer    =   5  'Size
  838.          ScaleHeight     =   1155
  839.          ScaleWidth      =   1875
  840.          TabIndex        =   19
  841.          Top             =   3120
  842.          Visible         =   0   'False
  843.          Width           =   1935
  844.       End
  845.       Begin VB.PictureBox Picture1 
  846.          AutoRedraw      =   -1  'True
  847.          Height          =   1215
  848.          Index           =   63
  849.          Left            =   2040
  850.          MousePointer    =   5  'Size
  851.          ScaleHeight     =   1155
  852.          ScaleWidth      =   1875
  853.          TabIndex        =   18
  854.          Top             =   3240
  855.          Visible         =   0   'False
  856.          Width           =   1935
  857.       End
  858.       Begin VB.PictureBox Picture1 
  859.          AutoRedraw      =   -1  'True
  860.          Height          =   1215
  861.          Index           =   64
  862.          Left            =   2040
  863.          MousePointer    =   5  'Size
  864.          ScaleHeight     =   1155
  865.          ScaleWidth      =   1875
  866.          TabIndex        =   17
  867.          Top             =   3360
  868.          Visible         =   0   'False
  869.          Width           =   1935
  870.       End
  871.       Begin VB.PictureBox Picture1 
  872.          AutoRedraw      =   -1  'True
  873.          Height          =   1215
  874.          Index           =   65
  875.          Left            =   2040
  876.          MousePointer    =   5  'Size
  877.          ScaleHeight     =   1155
  878.          ScaleWidth      =   1875
  879.          TabIndex        =   16
  880.          Top             =   3480
  881.          Visible         =   0   'False
  882.          Width           =   1935
  883.       End
  884.       Begin VB.PictureBox Picture1 
  885.          AutoRedraw      =   -1  'True
  886.          Height          =   1215
  887.          Index           =   66
  888.          Left            =   2040
  889.          MousePointer    =   5  'Size
  890.          ScaleHeight     =   1155
  891.          ScaleWidth      =   1875
  892.          TabIndex        =   15
  893.          Top             =   3600
  894.          Visible         =   0   'False
  895.          Width           =   1935
  896.       End
  897.       Begin VB.PictureBox Picture1 
  898.          AutoRedraw      =   -1  'True
  899.          Height          =   1215
  900.          Index           =   67
  901.          Left            =   2040
  902.          MousePointer    =   5  'Size
  903.          ScaleHeight     =   1155
  904.          ScaleWidth      =   1875
  905.          TabIndex        =   14
  906.          Top             =   3720
  907.          Visible         =   0   'False
  908.          Width           =   1935
  909.       End
  910.       Begin VB.PictureBox Picture1 
  911.          AutoRedraw      =   -1  'True
  912.          Height          =   1215
  913.          Index           =   68
  914.          Left            =   2040
  915.          MousePointer    =   5  'Size
  916.          ScaleHeight     =   1155
  917.          ScaleWidth      =   1875
  918.          TabIndex        =   13
  919.          Top             =   3840
  920.          Visible         =   0   'False
  921.          Width           =   1935
  922.       End
  923.       Begin VB.PictureBox Picture1 
  924.          AutoRedraw      =   -1  'True
  925.          Height          =   1215
  926.          Index           =   69
  927.          Left            =   2040
  928.          MousePointer    =   5  'Size
  929.          ScaleHeight     =   1155
  930.          ScaleWidth      =   1875
  931.          TabIndex        =   12
  932.          Top             =   3960
  933.          Visible         =   0   'False
  934.          Width           =   1935
  935.       End
  936.       Begin VB.PictureBox Picture1 
  937.          AutoRedraw      =   -1  'True
  938.          Height          =   1215
  939.          Index           =   70
  940.          Left            =   2040
  941.          MousePointer    =   5  'Size
  942.          ScaleHeight     =   1155
  943.          ScaleWidth      =   1875
  944.          TabIndex        =   11
  945.          Top             =   4080
  946.          Visible         =   0   'False
  947.          Width           =   1935
  948.       End
  949.       Begin VB.PictureBox Picture1 
  950.          AutoRedraw      =   -1  'True
  951.          Height          =   1215
  952.          Index           =   71
  953.          Left            =   2040
  954.          MousePointer    =   5  'Size
  955.          ScaleHeight     =   1155
  956.          ScaleWidth      =   1875
  957.          TabIndex        =   10
  958.          Top             =   4200
  959.          Visible         =   0   'False
  960.          Width           =   1935
  961.       End
  962.       Begin VB.PictureBox Picture1 
  963.          AutoRedraw      =   -1  'True
  964.          Height          =   1215
  965.          Index           =   72
  966.          Left            =   4080
  967.          MousePointer    =   5  'Size
  968.          ScaleHeight     =   1155
  969.          ScaleWidth      =   1875
  970.          TabIndex        =   9
  971.          Top             =   0
  972.          Visible         =   0   'False
  973.          Width           =   1935
  974.       End
  975.       Begin VB.PictureBox Picture1 
  976.          AutoRedraw      =   -1  'True
  977.          Height          =   1215
  978.          Index           =   73
  979.          Left            =   4080
  980.          MousePointer    =   5  'Size
  981.          ScaleHeight     =   1155
  982.          ScaleWidth      =   1875
  983.          TabIndex        =   8
  984.          Top             =   120
  985.          Visible         =   0   'False
  986.          Width           =   1935
  987.       End
  988.       Begin VB.PictureBox Picture1 
  989.          AutoRedraw      =   -1  'True
  990.          Height          =   1215
  991.          Index           =   74
  992.          Left            =   4080
  993.          MousePointer    =   5  'Size
  994.          ScaleHeight     =   1155
  995.          ScaleWidth      =   1875
  996.          TabIndex        =   7
  997.          Top             =   240
  998.          Visible         =   0   'False
  999.          Width           =   1935
  1000.       End
  1001.       Begin VB.PictureBox Picture1 
  1002.          AutoRedraw      =   -1  'True
  1003.          Height          =   1215
  1004.          Index           =   75
  1005.          Left            =   4080
  1006.          MousePointer    =   5  'Size
  1007.          ScaleHeight     =   1155
  1008.          ScaleWidth      =   1875
  1009.          TabIndex        =   6
  1010.          Top             =   360
  1011.          Visible         =   0   'False
  1012.          Width           =   1935
  1013.       End
  1014.       Begin VB.PictureBox Picture1 
  1015.          AutoRedraw      =   -1  'True
  1016.          Height          =   1215
  1017.          Index           =   76
  1018.          Left            =   4080
  1019.          MousePointer    =   5  'Size
  1020.          ScaleHeight     =   1155
  1021.          ScaleWidth      =   1875
  1022.          TabIndex        =   5
  1023.          Top             =   480
  1024.          Visible         =   0   'False
  1025.          Width           =   1935
  1026.       End
  1027.       Begin VB.PictureBox Picture1 
  1028.          AutoRedraw      =   -1  'True
  1029.          Height          =   1215
  1030.          Index           =   77
  1031.          Left            =   4080
  1032.          MousePointer    =   5  'Size
  1033.          ScaleHeight     =   1155
  1034.          ScaleWidth      =   1875
  1035.          TabIndex        =   4
  1036.          Top             =   600
  1037.          Visible         =   0   'False
  1038.          Width           =   1935
  1039.       End
  1040.       Begin VB.PictureBox Picture1 
  1041.          AutoRedraw      =   -1  'True
  1042.          Height          =   1215
  1043.          Index           =   78
  1044.          Left            =   4080
  1045.          MousePointer    =   5  'Size
  1046.          ScaleHeight     =   1155
  1047.          ScaleWidth      =   1875
  1048.          TabIndex        =   3
  1049.          Top             =   720
  1050.          Visible         =   0   'False
  1051.          Width           =   1935
  1052.       End
  1053.       Begin VB.PictureBox Picture1 
  1054.          AutoRedraw      =   -1  'True
  1055.          Height          =   1215
  1056.          Index           =   79
  1057.          Left            =   4080
  1058.          MousePointer    =   5  'Size
  1059.          ScaleHeight     =   1155
  1060.          ScaleWidth      =   1875
  1061.          TabIndex        =   2
  1062.          Top             =   840
  1063.          Visible         =   0   'False
  1064.          Width           =   1935
  1065.       End
  1066.       Begin VB.PictureBox Picture1 
  1067.          AutoRedraw      =   -1  'True
  1068.          Height          =   1215
  1069.          Index           =   80
  1070.          Left            =   4080
  1071.          MousePointer    =   5  'Size
  1072.          ScaleHeight     =   1155
  1073.          ScaleWidth      =   1875
  1074.          TabIndex        =   1
  1075.          Top             =   960
  1076.          Visible         =   0   'False
  1077.          Width           =   1935
  1078.       End
  1079.    End
  1080.    Begin VB.Menu mnuFile 
  1081.       Caption         =   "&File"
  1082.       Begin VB.Menu mnuNew 
  1083.          Caption         =   "&New"
  1084.       End
  1085.       Begin VB.Menu mnuShuffle 
  1086.          Caption         =   "&Shuffle"
  1087.       End
  1088.       Begin VB.Menu mnuLoadImage 
  1089.          Caption         =   "Load &Image"
  1090.       End
  1091.       Begin VB.Menu Space1 
  1092.          Caption         =   "-"
  1093.       End
  1094.       Begin VB.Menu mnuExit 
  1095.          Caption         =   "&Exit"
  1096.       End
  1097.    End
  1098.    Begin VB.Menu Options 
  1099.       Caption         =   "&Options"
  1100.       Begin VB.Menu Op 
  1101.          Caption         =   "4x4"
  1102.          Index           =   0
  1103.       End
  1104.       Begin VB.Menu Op 
  1105.          Caption         =   "4x5"
  1106.          Checked         =   -1  'True
  1107.          Index           =   1
  1108.       End
  1109.       Begin VB.Menu Op 
  1110.          Caption         =   "5x5"
  1111.          Index           =   2
  1112.       End
  1113.       Begin VB.Menu Op 
  1114.          Caption         =   "6x6"
  1115.          Index           =   3
  1116.       End
  1117.       Begin VB.Menu Op 
  1118.          Caption         =   "7x7"
  1119.          Index           =   4
  1120.       End
  1121.       Begin VB.Menu Op 
  1122.          Caption         =   "8x8"
  1123.          Index           =   5
  1124.       End
  1125.       Begin VB.Menu Op 
  1126.          Caption         =   "9x9"
  1127.          Index           =   6
  1128.       End
  1129.    End
  1130.    Begin VB.Menu mnuAbout 
  1131.       Caption         =   "&About"
  1132.    End
  1133. Attribute VB_Name = "Form1"
  1134. Attribute VB_GlobalNameSpace = False
  1135. Attribute VB_Creatable = False
  1136. Attribute VB_PredeclaredId = True
  1137. Attribute VB_Exposed = False
  1138. 'Genetal Variable Declaration
  1139. Private X1 As Integer, Y1 As Integer
  1140. Private Sub mnuAbout_Click()
  1141. 'Generate a Standard About Message Box
  1142.     MsgBox "Programmed by Pedro Lamas" & vbCrLf & "Copyright 
  1143. 1997-1999 Underground Software", vbApplicationModal + vbInformation, "Credits!"
  1144. End Sub
  1145. Private Sub mnuShuffle_Click()
  1146. 'Shuffle the Puzzle Pieces
  1147.     Shuffle
  1148. End Sub
  1149. Private Sub mnuLoadImage_Click()
  1150. 'Show the Image Loader Form
  1151.     Form2.Show 1
  1152. End Sub
  1153. Private Sub Form_Initialize()
  1154. 'Sqa defines the number of pieces per colomn
  1155. 'Sqb defines the number of pieces per row
  1156.     Sqa = 4
  1157.     Sqb = 5
  1158. 'Move the Main Form so that it is full screen and show it
  1159.     Me.Move 0, 0, Screen.Width, Screen.Height
  1160.     Show
  1161. 'Make the Picture container be as large as the form,
  1162. 'but inside it
  1163.     Picture2.Width = Form1.ScaleWidth
  1164.     Picture2.Height = Form1.ScaleHeight
  1165. 'Do all events, start random number generator and create
  1166. 'the puzzle by cutting the image in pieces
  1167.     DoEvents
  1168.     Randomize
  1169.     Start
  1170. End Sub
  1171. Private Sub Form_Unload(Cancel As Integer)
  1172. 'End the program
  1173.     End
  1174. End Sub
  1175. Private Sub mnuNew_Click()
  1176. 'Hide the pieces and start again
  1177.     HideAll
  1178.     Start
  1179. End Sub
  1180. Private Sub Op_Click(Index As Integer)
  1181.     Dim I As Integer
  1182. 'For all puzzle size options menu
  1183.     For I = 0 To 6
  1184.         If I = Index Then
  1185. 'Check the selected option and update the number of
  1186. 'pieces per colomn and per row
  1187.             Op(I).Checked = True
  1188.             Sqa = Val(Left(Op(I).Caption, 1))
  1189.             Sqb = Val(Right(Op(I).Caption, 1))
  1190.         Else
  1191. 'uncheck the other options
  1192.             Op(I).Checked = False
  1193.         End If
  1194.     Next I
  1195. End Sub
  1196. Private Sub Picture1_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  1197. 'make this piece stay on top of the others and save the
  1198. 'click coordinates
  1199.     Picture1(Index).ZOrder 0
  1200.     X1 = X
  1201.     Y1 = Y
  1202. End Sub
  1203. Private Sub Picture1_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  1204. 'If the left button is pressed,
  1205.     If Button = 1 Then
  1206. 'update the position of this puzzle piece
  1207.         Picture1(Index).Left = Picture1(Index).Left + X - X1
  1208.         Picture1(Index).Top = Picture1(Index).Top + Y - Y1
  1209.     End If
  1210. End Sub
  1211. Private Sub Picture1_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
  1212.     Dim A As Integer, B As Integer, A1 As Integer, B1 As Integer
  1213. 'Get the piece right position (which is stored in the Tag
  1214. 'property)
  1215. 'A is the left and B the is top for the piece
  1216.     A = Val(Left(Picture1(Index).Tag, 7))
  1217.     B = Val(Right(Picture1(Index).Tag, 7))
  1218. 'Now get the actual piece position
  1219. 'A1 is the left and B1 is the top for the piece
  1220.     A1 = Picture1(Index).Left
  1221.     B1 = Picture1(Index).Top
  1222. 'If the piece is at a maximum of 300 twips of its right
  1223. 'position, then put it on its right position
  1224.     If A + 300 > A1 And A - 300 < A1 And B + 300 > B1 And B - 300 < B1 Then
  1225.         Picture1(Index).Left = A
  1226.         Picture1(Index).Top = B
  1227.     End If
  1228. 'B is now a Flag used to see if all pieces are in their
  1229. 'correct places
  1230.     B = 1
  1231. 'Begin scanning the pieces positions
  1232.     For A = 0 To Sqa * Sqb - 1
  1233.         A1 = Val(Left(Picture1(A).Tag, 7))
  1234.         B1 = Val(Right(Picture1(A).Tag, 7))
  1235.         If A1 <> Picture1(A).Left Or B1 <> Picture1(A).Top Then
  1236. 'If piece A is not on the correct position, then unset
  1237. 'the Flag
  1238.             B = 0
  1239.         End If
  1240.     Next A
  1241. 'If B is equal to 1 then all the pieces are in their
  1242. 'rigth positions and the puzzle is finished
  1243.     If B = 1 Then
  1244. 'Hide all pieces, disable the Shuffle menu option
  1245.         HideAll
  1246.         mnuShuffle.Enabled = False
  1247. 'Now paint the picture as it is
  1248.         Picture2.PaintPicture Form2.Image1.Picture, 0, 0, Form1.ScaleWidth, Form1.ScaleHeight, 0, 0, Form2.Image1.Width, Form2.Image1.Height
  1249.         MsgBox "You have finished the puzzle. Congratulations!", vbApplicationModal + vbInformation, "Congratulations!"
  1250.     End If
  1251. End Sub
  1252. Private Sub mnuExit_Click()
  1253. 'End the game
  1254.     End
  1255. End Sub
  1256.