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

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    ClientHeight    =   9420
  6.    ClientLeft      =   15
  7.    ClientTop       =   -180
  8.    ClientWidth     =   6975
  9.    ControlBox      =   0   'False
  10.    Icon            =   "Form1.frx":0000
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    ScaleHeight     =   9420
  14.    ScaleWidth      =   6975
  15.    StartUpPosition =   1  'CenterOwner
  16.    Begin VB.Frame Frame1 
  17.       BackColor       =   &H00C0C0C0&
  18.       Height          =   1455
  19.       Left            =   60
  20.       TabIndex        =   21
  21.       Top             =   7800
  22.       Width           =   6840
  23.       Begin VB.Timer Timer2 
  24.          Enabled         =   0   'False
  25.          Interval        =   1000
  26.          Left            =   600
  27.          Top             =   120
  28.       End
  29.       Begin VB.OptionButton Option1 
  30.          BackColor       =   &H00C0C0C0&
  31.          Caption         =   "Easy "
  32.          BeginProperty Font 
  33.             Name            =   "Tahoma"
  34.             Size            =   15.75
  35.             Charset         =   178
  36.             Weight          =   700
  37.             Underline       =   0   'False
  38.             Italic          =   -1  'True
  39.             Strikethrough   =   0   'False
  40.          EndProperty
  41.          ForeColor       =   &H00000080&
  42.          Height          =   375
  43.          Index           =   0
  44.          Left            =   80
  45.          MouseIcon       =   "Form1.frx":0BC2
  46.          MousePointer    =   99  'Custom
  47.          TabIndex        =   24
  48.          Tag             =   "5"
  49.          Top             =   240
  50.          Value           =   -1  'True
  51.          Width           =   1575
  52.       End
  53.       Begin VB.OptionButton Option1 
  54.          BackColor       =   &H00C0C0C0&
  55.          Caption         =   "Midium "
  56.          BeginProperty Font 
  57.             Name            =   "Tahoma"
  58.             Size            =   15.75
  59.             Charset         =   178
  60.             Weight          =   700
  61.             Underline       =   0   'False
  62.             Italic          =   -1  'True
  63.             Strikethrough   =   0   'False
  64.          EndProperty
  65.          ForeColor       =   &H00000080&
  66.          Height          =   375
  67.          Index           =   1
  68.          Left            =   80
  69.          MouseIcon       =   "Form1.frx":0D14
  70.          MousePointer    =   99  'Custom
  71.          TabIndex        =   23
  72.          Tag             =   "10"
  73.          Top             =   625
  74.          Width           =   1590
  75.       End
  76.       Begin VB.OptionButton Option1 
  77.          BackColor       =   &H00C0C0C0&
  78.          Caption         =   "Hard "
  79.          BeginProperty Font 
  80.             Name            =   "Tahoma"
  81.             Size            =   15.75
  82.             Charset         =   178
  83.             Weight          =   700
  84.             Underline       =   0   'False
  85.             Italic          =   -1  'True
  86.             Strikethrough   =   0   'False
  87.          EndProperty
  88.          ForeColor       =   &H00000080&
  89.          Height          =   375
  90.          Index           =   2
  91.          Left            =   80
  92.          MouseIcon       =   "Form1.frx":0E66
  93.          MousePointer    =   99  'Custom
  94.          TabIndex        =   22
  95.          Tag             =   "20"
  96.          Top             =   1020
  97.          Width           =   1575
  98.       End
  99.       Begin VB.Label Scramble 
  100.          Alignment       =   2  'Center
  101.          AutoSize        =   -1  'True
  102.          BackStyle       =   0  'Transparent
  103.          Caption         =   "Scramble"
  104.          BeginProperty Font 
  105.             Name            =   "Tahoma"
  106.             Size            =   18
  107.             Charset         =   178
  108.             Weight          =   700
  109.             Underline       =   0   'False
  110.             Italic          =   -1  'True
  111.             Strikethrough   =   0   'False
  112.          EndProperty
  113.          ForeColor       =   &H0000FFFF&
  114.          Height          =   435
  115.          Left            =   1750
  116.          MouseIcon       =   "Form1.frx":0FB8
  117.          MousePointer    =   99  'Custom
  118.          TabIndex        =   30
  119.          Top             =   200
  120.          Width           =   1800
  121.       End
  122.       Begin VB.Label Label1 
  123.          Alignment       =   2  'Center
  124.          AutoSize        =   -1  'True
  125.          BackStyle       =   0  'Transparent
  126.          Caption         =   "Moves No :"
  127.          BeginProperty Font 
  128.             Name            =   "Tahoma"
  129.             Size            =   9.75
  130.             Charset         =   178
  131.             Weight          =   700
  132.             Underline       =   0   'False
  133.             Italic          =   0   'False
  134.             Strikethrough   =   0   'False
  135.          EndProperty
  136.          Height          =   240
  137.          Left            =   4815
  138.          TabIndex        =   29
  139.          Top             =   945
  140.          Width           =   1080
  141.       End
  142.       Begin VB.Image Image2 
  143.          BorderStyle     =   1  'Fixed Single
  144.          Height          =   1100
  145.          Left            =   3800
  146.          MouseIcon       =   "Form1.frx":110A
  147.          MousePointer    =   99  'Custom
  148.          Picture         =   "Form1.frx":125C
  149.          Stretch         =   -1  'True
  150.          ToolTipText     =   " Nabeel Hosny Cairo / 2004 Click to Exit"
  151.          Top             =   240
  152.          Width           =   855
  153.       End
  154.       Begin VB.Label Label2 
  155.          Alignment       =   2  'Center
  156.          AutoSize        =   -1  'True
  157.          BackStyle       =   0  'Transparent
  158.          Caption         =   "0000"
  159.          BeginProperty Font 
  160.             Name            =   "Tahoma"
  161.             Size            =   9.75
  162.             Charset         =   178
  163.             Weight          =   700
  164.             Underline       =   0   'False
  165.             Italic          =   0   'False
  166.             Strikethrough   =   0   'False
  167.          EndProperty
  168.          Height          =   240
  169.          Left            =   6060
  170.          TabIndex        =   28
  171.          Top             =   945
  172.          Width           =   480
  173.       End
  174.       Begin VB.Label RestMe 
  175.          Alignment       =   2  'Center
  176.          AutoSize        =   -1  'True
  177.          BackStyle       =   0  'Transparent
  178.          Caption         =   "Reset Me"
  179.          BeginProperty Font 
  180.             Name            =   "Tahoma"
  181.             Size            =   18
  182.             Charset         =   178
  183.             Weight          =   700
  184.             Underline       =   0   'False
  185.             Italic          =   -1  'True
  186.             Strikethrough   =   0   'False
  187.          EndProperty
  188.          ForeColor       =   &H00008000&
  189.          Height          =   435
  190.          Left            =   1750
  191.          MouseIcon       =   "Form1.frx":25C8E
  192.          MousePointer    =   99  'Custom
  193.          TabIndex        =   27
  194.          Top             =   560
  195.          Width           =   1850
  196.       End
  197.       Begin VB.Label SolveMe 
  198.          Alignment       =   2  'Center
  199.          AutoSize        =   -1  'True
  200.          BackStyle       =   0  'Transparent
  201.          Caption         =   "Solve Me"
  202.          BeginProperty Font 
  203.             Name            =   "Tahoma"
  204.             Size            =   18
  205.             Charset         =   178
  206.             Weight          =   700
  207.             Underline       =   0   'False
  208.             Italic          =   -1  'True
  209.             Strikethrough   =   0   'False
  210.          EndProperty
  211.          ForeColor       =   &H00C00000&
  212.          Height          =   345
  213.          Left            =   1750
  214.          MouseIcon       =   "Form1.frx":25DE0
  215.          MousePointer    =   99  'Custom
  216.          TabIndex        =   26
  217.          Top             =   900
  218.          Width           =   1850
  219.       End
  220.       Begin VB.Label lblTimer 
  221.          Alignment       =   2  'Center
  222.          BackStyle       =   0  'Transparent
  223.          BeginProperty Font 
  224.             Name            =   "MS Sans Serif"
  225.             Size            =   9.75
  226.             Charset         =   178
  227.             Weight          =   700
  228.             Underline       =   0   'False
  229.             Italic          =   0   'False
  230.             Strikethrough   =   0   'False
  231.          EndProperty
  232.          ForeColor       =   &H00400000&
  233.          Height          =   255
  234.          Left            =   4800
  235.          TabIndex        =   25
  236.          Top             =   370
  237.          Width           =   1900
  238.       End
  239.       Begin VB.Shape Shape2 
  240.          BorderWidth     =   2
  241.          FillColor       =   &H00C0C0C0&
  242.          FillStyle       =   0  'Solid
  243.          Height          =   1100
  244.          Left            =   1750
  245.          Shape           =   4  'Rounded Rectangle
  246.          Top             =   240
  247.          Width           =   1935
  248.       End
  249.       Begin VB.Shape Shape3 
  250.          BorderWidth     =   2
  251.          FillColor       =   &H00C0C0C0&
  252.          FillStyle       =   0  'Solid
  253.          Height          =   450
  254.          Left            =   4740
  255.          Shape           =   4  'Rounded Rectangle
  256.          Top             =   280
  257.          Width           =   1995
  258.       End
  259.       Begin VB.Shape Shape1 
  260.          BorderWidth     =   2
  261.          FillColor       =   &H00C0C0C0&
  262.          FillStyle       =   0  'Solid
  263.          Height          =   450
  264.          Left            =   4740
  265.          Shape           =   4  'Rounded Rectangle
  266.          Top             =   840
  267.          Width           =   1995
  268.       End
  269.    End
  270.    Begin VB.CommandButton cmdTopCCWise 
  271.       Caption         =   ">>TCC"
  272.       Enabled         =   0   'False
  273.       BeginProperty Font 
  274.          Name            =   "MS Sans Serif"
  275.          Size            =   12
  276.          Charset         =   178
  277.          Weight          =   700
  278.          Underline       =   0   'False
  279.          Italic          =   -1  'True
  280.          Strikethrough   =   0   'False
  281.       EndProperty
  282.       Height          =   330
  283.       Left            =   0
  284.       TabIndex        =   7
  285.       ToolTipText     =   "Counter Clock-Wise Rotation"
  286.       Top             =   330
  287.       Visible         =   0   'False
  288.       Width           =   1215
  289.    End
  290.    Begin VB.CommandButton cmdTopCWise 
  291.       Caption         =   "<<TC"
  292.       Enabled         =   0   'False
  293.       BeginProperty Font 
  294.          Name            =   "MS Sans Serif"
  295.          Size            =   12
  296.          Charset         =   178
  297.          Weight          =   700
  298.          Underline       =   0   'False
  299.          Italic          =   -1  'True
  300.          Strikethrough   =   0   'False
  301.       EndProperty
  302.       Height          =   330
  303.       Left            =   0
  304.       MaskColor       =   &H000000C0&
  305.       Style           =   1  'Graphical
  306.       TabIndex        =   8
  307.       Tag             =   "t"
  308.       ToolTipText     =   "Clock-Wise Rotation"
  309.       Top             =   0
  310.       Visible         =   0   'False
  311.       Width           =   1215
  312.    End
  313.    Begin VB.CommandButton cmdFMBCCWise 
  314.       Caption         =   ">>FMBCC"
  315.       Enabled         =   0   'False
  316.       BeginProperty Font 
  317.          Name            =   "MS Sans Serif"
  318.          Size            =   12
  319.          Charset         =   178
  320.          Weight          =   700
  321.          Underline       =   0   'False
  322.          Italic          =   -1  'True
  323.          Strikethrough   =   0   'False
  324.       EndProperty
  325.       Height          =   330
  326.       Left            =   2760
  327.       TabIndex        =   20
  328.       ToolTipText     =   "Counter Clock-Wise Rotation"
  329.       Top             =   990
  330.       Visible         =   0   'False
  331.       Width           =   1575
  332.    End
  333.    Begin VB.CommandButton cmdFMBCWise 
  334.       Caption         =   "<<FMBC"
  335.       Enabled         =   0   'False
  336.       BeginProperty Font 
  337.          Name            =   "MS Sans Serif"
  338.          Size            =   12
  339.          Charset         =   178
  340.          Weight          =   700
  341.          Underline       =   0   'False
  342.          Italic          =   -1  'True
  343.          Strikethrough   =   0   'False
  344.       EndProperty
  345.       Height          =   330
  346.       Left            =   2760
  347.       TabIndex        =   19
  348.       Tag             =   "f"
  349.       ToolTipText     =   "Clock-Wise Rotation"
  350.       Top             =   660
  351.       Visible         =   0   'False
  352.       Width           =   1575
  353.    End
  354.    Begin VB.CommandButton cmdTMBCCWise 
  355.       Caption         =   ">>TMBCC"
  356.       Enabled         =   0   'False
  357.       BeginProperty Font 
  358.          Name            =   "MS Sans Serif"
  359.          Size            =   12
  360.          Charset         =   178
  361.          Weight          =   700
  362.          Underline       =   0   'False
  363.          Italic          =   -1  'True
  364.          Strikethrough   =   0   'False
  365.       EndProperty
  366.       Height          =   330
  367.       Left            =   0
  368.       TabIndex        =   18
  369.       ToolTipText     =   "Counter Clock-Wise Rotation"
  370.       Top             =   990
  371.       Visible         =   0   'False
  372.       Width           =   1575
  373.    End
  374.    Begin VB.CommandButton cmdTMBCWise 
  375.       Caption         =   "<<TMBC"
  376.       Enabled         =   0   'False
  377.       BeginProperty Font 
  378.          Name            =   "MS Sans Serif"
  379.          Size            =   12
  380.          Charset         =   178
  381.          Weight          =   700
  382.          Underline       =   0   'False
  383.          Italic          =   -1  'True
  384.          Strikethrough   =   0   'False
  385.       EndProperty
  386.       Height          =   330
  387.       Left            =   0
  388.       MaskColor       =   &H000000C0&
  389.       Style           =   1  'Graphical
  390.       TabIndex        =   17
  391.       Tag             =   "t"
  392.       ToolTipText     =   "Clock-Wise Rotation"
  393.       Top             =   660
  394.       Visible         =   0   'False
  395.       Width           =   1215
  396.    End
  397.    Begin VB.CommandButton cmdLMRCCWise 
  398.       Caption         =   ">>LMRCC"
  399.       Enabled         =   0   'False
  400.       BeginProperty Font 
  401.          Name            =   "MS Sans Serif"
  402.          Size            =   12
  403.          Charset         =   178
  404.          Weight          =   700
  405.          Underline       =   0   'False
  406.          Italic          =   -1  'True
  407.          Strikethrough   =   0   'False
  408.       EndProperty
  409.       Height          =   330
  410.       Left            =   5280
  411.       TabIndex        =   16
  412.       ToolTipText     =   "Counter Clock-Wise Rotation"
  413.       Top             =   990
  414.       Visible         =   0   'False
  415.       Width           =   1575
  416.    End
  417.    Begin VB.CommandButton cmdLMRCWise 
  418.       Caption         =   "<<LMRCC"
  419.       Enabled         =   0   'False
  420.       BeginProperty Font 
  421.          Name            =   "MS Sans Serif"
  422.          Size            =   12
  423.          Charset         =   178
  424.          Weight          =   700
  425.          Underline       =   0   'False
  426.          Italic          =   -1  'True
  427.          Strikethrough   =   0   'False
  428.       EndProperty
  429.       Height          =   330
  430.       Left            =   5280
  431.       TabIndex        =   15
  432.       Tag             =   "i"
  433.       ToolTipText     =   "Clock-Wise Rotation"
  434.       Top             =   660
  435.       Visible         =   0   'False
  436.       Width           =   1575
  437.    End
  438.    Begin VB.CommandButton cmdBCCWise 
  439.       Caption         =   ">>BCC"
  440.       Enabled         =   0   'False
  441.       BeginProperty Font 
  442.          Name            =   "MS Sans Serif"
  443.          Size            =   12
  444.          Charset         =   178
  445.          Weight          =   700
  446.          Underline       =   0   'False
  447.          Italic          =   -1  'True
  448.          Strikethrough   =   0   'False
  449.       EndProperty
  450.       Height          =   330
  451.       Left            =   2760
  452.       TabIndex        =   10
  453.       ToolTipText     =   "Counter Clock-Wise Rotation"
  454.       Top             =   1650
  455.       Visible         =   0   'False
  456.       Width           =   1215
  457.    End
  458.    Begin VB.CommandButton cmdBCWise 
  459.       Caption         =   "<<BC"
  460.       Enabled         =   0   'False
  461.       BeginProperty Font 
  462.          Name            =   "MS Sans Serif"
  463.          Size            =   12
  464.          Charset         =   178
  465.          Weight          =   700
  466.          Underline       =   0   'False
  467.          Italic          =   -1  'True
  468.          Strikethrough   =   0   'False
  469.       EndProperty
  470.       Height          =   330
  471.       Left            =   2760
  472.       TabIndex        =   9
  473.       Tag             =   "b"
  474.       ToolTipText     =   "Clock-Wise Rotation"
  475.       Top             =   1320
  476.       Visible         =   0   'False
  477.       Width           =   1215
  478.    End
  479.    Begin VB.CommandButton cmdFCWise 
  480.       Caption         =   "<<FC"
  481.       Enabled         =   0   'False
  482.       BeginProperty Font 
  483.          Name            =   "MS Sans Serif"
  484.          Size            =   12
  485.          Charset         =   178
  486.          Weight          =   700
  487.          Underline       =   0   'False
  488.          Italic          =   -1  'True
  489.          Strikethrough   =   0   'False
  490.       EndProperty
  491.       Height          =   330
  492.       Left            =   2760
  493.       TabIndex        =   12
  494.       Tag             =   "f"
  495.       ToolTipText     =   "Clock-Wise Rotation"
  496.       Top             =   0
  497.       Visible         =   0   'False
  498.       Width           =   1215
  499.    End
  500.    Begin VB.CommandButton cmdFCCWise 
  501.       Caption         =   ">>FCC"
  502.       Enabled         =   0   'False
  503.       BeginProperty Font 
  504.          Name            =   "MS Sans Serif"
  505.          Size            =   12
  506.          Charset         =   178
  507.          Weight          =   700
  508.          Underline       =   0   'False
  509.          Italic          =   -1  'True
  510.          Strikethrough   =   0   'False
  511.       EndProperty
  512.       Height          =   330
  513.       Left            =   2760
  514.       TabIndex        =   11
  515.       ToolTipText     =   "Counter Clock-Wise Rotation"
  516.       Top             =   330
  517.       Visible         =   0   'False
  518.       Width           =   1215
  519.    End
  520.    Begin VB.CommandButton cmdBottomCCWise 
  521.       Caption         =   ">>DCC"
  522.       Enabled         =   0   'False
  523.       BeginProperty Font 
  524.          Name            =   "MS Sans Serif"
  525.          Size            =   12
  526.          Charset         =   178
  527.          Weight          =   700
  528.          Underline       =   0   'False
  529.          Italic          =   -1  'True
  530.          Strikethrough   =   0   'False
  531.       EndProperty
  532.       Height          =   330
  533.       Left            =   0
  534.       TabIndex        =   6
  535.       ToolTipText     =   "Counter Clock-Wise Rotation"
  536.       Top             =   1650
  537.       Visible         =   0   'False
  538.       Width           =   1215
  539.    End
  540.    Begin VB.CommandButton cmdBottomCWise 
  541.       Caption         =   "<<DC"
  542.       Enabled         =   0   'False
  543.       BeginProperty Font 
  544.          Name            =   "MS Sans Serif"
  545.          Size            =   12
  546.          Charset         =   178
  547.          Weight          =   700
  548.          Underline       =   0   'False
  549.          Italic          =   -1  'True
  550.          Strikethrough   =   0   'False
  551.       EndProperty
  552.       Height          =   330
  553.       Left            =   0
  554.       MaskColor       =   &H000000C0&
  555.       Style           =   1  'Graphical
  556.       TabIndex        =   5
  557.       Tag             =   "d"
  558.       ToolTipText     =   "Clock-Wise Rotation"
  559.       Top             =   1320
  560.       Visible         =   0   'False
  561.       Width           =   1215
  562.    End
  563.    Begin VB.CommandButton cmdRCWise 
  564.       Caption         =   "<<RC"
  565.       Enabled         =   0   'False
  566.       BeginProperty Font 
  567.          Name            =   "MS Sans Serif"
  568.          Size            =   12
  569.          Charset         =   178
  570.          Weight          =   700
  571.          Underline       =   0   'False
  572.          Italic          =   -1  'True
  573.          Strikethrough   =   0   'False
  574.       EndProperty
  575.       Height          =   330
  576.       Left            =   5640
  577.       TabIndex        =   4
  578.       Tag             =   "r"
  579.       ToolTipText     =   "Clock-Wise Rotation"
  580.       Top             =   0
  581.       Visible         =   0   'False
  582.       Width           =   1215
  583.    End
  584.    Begin VB.CommandButton cmdRCCWise 
  585.       Caption         =   ">>RCC"
  586.       Enabled         =   0   'False
  587.       BeginProperty Font 
  588.          Name            =   "MS Sans Serif"
  589.          Size            =   12
  590.          Charset         =   178
  591.          Weight          =   700
  592.          Underline       =   0   'False
  593.          Italic          =   -1  'True
  594.          Strikethrough   =   0   'False
  595.       EndProperty
  596.       Height          =   330
  597.       Left            =   5640
  598.       TabIndex        =   3
  599.       ToolTipText     =   "Counter Clock-Wise Rotation"
  600.       Top             =   330
  601.       Visible         =   0   'False
  602.       Width           =   1215
  603.    End
  604.    Begin VB.CommandButton cmdLCWise 
  605.       Caption         =   "<<LC"
  606.       Enabled         =   0   'False
  607.       BeginProperty Font 
  608.          Name            =   "MS Sans Serif"
  609.          Size            =   12
  610.          Charset         =   178
  611.          Weight          =   700
  612.          Underline       =   0   'False
  613.          Italic          =   -1  'True
  614.          Strikethrough   =   0   'False
  615.       EndProperty
  616.       Height          =   330
  617.       Left            =   5760
  618.       TabIndex        =   2
  619.       Tag             =   "i"
  620.       ToolTipText     =   "Clock-Wise Rotation"
  621.       Top             =   1320
  622.       Visible         =   0   'False
  623.       Width           =   1095
  624.    End
  625.    Begin VB.CommandButton cmdLCCWise 
  626.       Caption         =   ">>LCC"
  627.       Enabled         =   0   'False
  628.       BeginProperty Font 
  629.          Name            =   "MS Sans Serif"
  630.          Size            =   12
  631.          Charset         =   178
  632.          Weight          =   700
  633.          Underline       =   0   'False
  634.          Italic          =   -1  'True
  635.          Strikethrough   =   0   'False
  636.       EndProperty
  637.       Height          =   330
  638.       Left            =   5880
  639.       TabIndex        =   1
  640.       ToolTipText     =   "Counter Clock-Wise Rotation"
  641.       Top             =   1650
  642.       Visible         =   0   'False
  643.       Width           =   1095
  644.    End
  645.    Begin RubiksCube.RubikCube RubikCube1 
  646.       Height          =   6300
  647.       Left            =   720
  648.       TabIndex        =   0
  649.       Top             =   720
  650.       Width           =   5535
  651.       _ExtentX        =   9763
  652.       _ExtentY        =   11113
  653.    End
  654.    Begin VB.ListBox List1 
  655.       Height          =   3570
  656.       Left            =   0
  657.       TabIndex        =   13
  658.       Top             =   0
  659.       Visible         =   0   'False
  660.       Width           =   375
  661.    End
  662.    Begin VB.Label Label3 
  663.       BackColor       =   &H80000009&
  664.       BorderStyle     =   1  'Fixed Single
  665.       Height          =   255
  666.       Left            =   0
  667.       TabIndex        =   14
  668.       Top             =   2280
  669.       Visible         =   0   'False
  670.       Width           =   255
  671.    End
  672.    Begin VB.Image Image1 
  673.       Height          =   7775
  674.       Left            =   120
  675.       Picture         =   "Form1.frx":25F32
  676.       Stretch         =   -1  'True
  677.       Top             =   0
  678.       Width           =   6735
  679.    End
  680. End
  681. Attribute VB_Name = "Form1"
  682. Attribute VB_GlobalNameSpace = False
  683. Attribute VB_Creatable = False
  684. Attribute VB_PredeclaredId = True
  685. Attribute VB_Exposed = False
  686.  
  687. Private Declare Function CreateRoundRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long
  688. Private Declare Function SetWindowRgn Lib "user32" (ByVal hwnd As Long, ByVal hrgn As Long, ByVal bRedraw As Boolean) As Long
  689. Dim ElapsedSeconds  As Long     'time elapsed
  690. Dim level As Integer
  691. Dim kk As Integer
  692. Private Sub cmdBCCWise_Click()
  693. Dim Z As String
  694.  
  695. X = RubikCube1.GetXCoor
  696. Y = RubikCube1.GetYCoor
  697. Z = X & "/" & Y
  698. RubikCube1.GetRotation Z, "BA", "CCWise"
  699. If kk = 0 Then List1.AddItem 16: gome
  700. End Sub
  701.  
  702. Private Sub cmdBCWise_Click()
  703. Dim Z As String
  704.  
  705. X = RubikCube1.GetXCoor
  706. Y = RubikCube1.GetYCoor
  707. Z = X & "/" & Y
  708. RubikCube1.GetRotation Z, "BA", "CWise"
  709. If kk = 0 Then List1.AddItem 7: gome
  710. End Sub
  711.  
  712. Private Sub cmdBottomCCWise_Click()
  713. Dim Z As String
  714.  
  715. X = RubikCube1.GetXCoor
  716. Y = RubikCube1.GetYCoor
  717. Z = X & "/" & Y
  718. RubikCube1.GetRotation Z, "BO", "CCWise"
  719. If kk = 0 Then List1.AddItem 18: gome
  720. End Sub
  721.  
  722. Private Sub cmdBottomCWise_Click()
  723. Dim Z As String
  724.  
  725. X = RubikCube1.GetXCoor
  726. Y = RubikCube1.GetYCoor
  727. Z = X & "/" & Y
  728. RubikCube1.GetRotation Z, "BO", "CWise"
  729. If kk = 0 Then List1.AddItem 11: gome
  730. End Sub
  731.  
  732. Private Sub cmdFCCWise_Click()
  733. Dim Z As String
  734.  
  735. X = RubikCube1.GetXCoor
  736. Y = RubikCube1.GetYCoor
  737. Z = X & "/" & Y
  738. RubikCube1.GetRotation Z, "F", "CCWise"
  739. If kk = 0 Then List1.AddItem 13: gome
  740. End Sub
  741.  
  742. Private Sub cmdFCWise_Click()
  743. Dim Z As String
  744.  
  745. X = RubikCube1.GetXCoor
  746. Y = RubikCube1.GetYCoor
  747. Z = X & "/" & Y
  748. RubikCube1.GetRotation Z, "F", "CWise"
  749. If kk = 0 Then List1.AddItem 1: gome
  750. End Sub
  751.  
  752. Private Sub cmdFMBCCWise_Click()
  753. Dim Z As String
  754.  
  755. X = RubikCube1.GetXCoor
  756. Y = RubikCube1.GetYCoor
  757. Z = X & "/" & Y
  758. RubikCube1.GetRotation Z, "FMB", "CCWise"
  759. If kk = 0 Then List1.AddItem 21: gome
  760. End Sub
  761.  
  762. Private Sub cmdFMBCWise_Click()
  763. Dim Z As String
  764.  
  765. X = RubikCube1.GetXCoor
  766. Y = RubikCube1.GetYCoor
  767. Z = X & "/" & Y
  768. RubikCube1.GetRotation Z, "FMB", "CWise"
  769. If kk = 0 Then List1.AddItem 22: gome
  770. End Sub
  771.  
  772. Private Sub cmdLCCWise_Click()
  773. Dim Z As String
  774.  
  775. X = RubikCube1.GetXCoor
  776. Y = RubikCube1.GetYCoor
  777. Z = X & "/" & Y
  778. RubikCube1.GetRotation Z, "L", "CCWise"
  779. If kk = 0 Then List1.AddItem 15: gome
  780. End Sub
  781.  
  782. Private Sub cmdLCWise_Click()
  783. Dim Z As String
  784.  
  785. X = RubikCube1.GetXCoor
  786. Y = RubikCube1.GetYCoor
  787. Z = X & "/" & Y
  788. RubikCube1.GetRotation Z, "L", "CWise"
  789. If kk = 0 Then List1.AddItem 5: gome
  790. End Sub
  791.  
  792. Private Sub cmdLMRCCWise_Click()
  793. Dim Z As String
  794.  
  795. X = RubikCube1.GetXCoor
  796. Y = RubikCube1.GetYCoor
  797. Z = X & "/" & Y
  798. RubikCube1.GetRotation Z, "LMR", "CCWise"
  799. If kk = 0 Then List1.AddItem 23: gome
  800. End Sub
  801.  
  802. Private Sub cmdLMRCWise_Click()
  803. Dim Z As String
  804.  
  805. X = RubikCube1.GetXCoor
  806. Y = RubikCube1.GetYCoor
  807. Z = X & "/" & Y
  808. RubikCube1.GetRotation Z, "LMR", "CWise"
  809. If kk = 0 Then List1.AddItem 24: gome
  810. End Sub
  811.  
  812. Private Sub cmdRCCWise_Click()
  813. Dim Z As String
  814.  
  815. X = RubikCube1.GetXCoor
  816. Y = RubikCube1.GetYCoor
  817. Z = X & "/" & Y
  818. RubikCube1.GetRotation Z, "R", "CCWise"
  819. If kk = 0 Then List1.AddItem 14: gome
  820. End Sub
  821.  
  822. Private Sub cmdRCWise_Click()
  823. Dim Z As String
  824.  
  825. X = RubikCube1.GetXCoor
  826. Y = RubikCube1.GetYCoor
  827. Z = X & "/" & Y
  828. RubikCube1.GetRotation Z, "R", "CWise"
  829. If kk = 0 Then List1.AddItem 3: gome
  830. End Sub
  831.  
  832. Private Sub cmdTMBCCWise_Click()
  833. Dim Z As String
  834.  
  835. X = RubikCube1.GetXCoor
  836. Y = RubikCube1.GetYCoor
  837. Z = X & "/" & Y
  838. RubikCube1.GetRotation Z, "TMB", "CCWise"
  839. If kk = 0 Then List1.AddItem 20: gome
  840. End Sub
  841.  
  842. Private Sub cmdTMBCWise_Click()
  843. Dim Z As String
  844.  
  845. X = RubikCube1.GetXCoor
  846. Y = RubikCube1.GetYCoor
  847. Z = X & "/" & Y
  848. RubikCube1.GetRotation Z, "TMB", "CWise"
  849. If kk = 0 Then List1.AddItem 19: gome
  850. End Sub
  851.  
  852. Private Sub cmdTopCCWise_Click()
  853. Dim Z As String
  854.  
  855. X = RubikCube1.GetXCoor
  856. Y = RubikCube1.GetYCoor
  857. Z = X & "/" & Y
  858. RubikCube1.GetRotation Z, "T", "CCWise"
  859. If kk = 0 Then List1.AddItem 17: gome
  860. End Sub
  861.  
  862. Private Sub cmdTopCWise_Click()
  863. Dim Z As String
  864.  
  865. X = RubikCube1.GetXCoor
  866. Y = RubikCube1.GetYCoor
  867. Z = X & "/" & Y
  868. RubikCube1.GetRotation Z, "T", "CWise"
  869. If kk = 0 Then List1.AddItem 9: gome
  870. End Sub
  871.  
  872. Private Sub Command1_Click()
  873. Label3.Caption = "1"
  874. List1.Clear
  875. Label2.Caption = "0000"
  876. 'if Time Elapsed is enabled..
  877. If Timer2.Enabled = True Then
  878.     
  879.     'display elapsed time..
  880.     MsgBox lblTimer.Caption, , Me.Caption
  881.  
  882.     'ask if user want to scramble cube again..
  883.     ans = MsgBox("Are you sure?", _
  884.         vbQuestion + vbYesNo, "Scramble Cube")
  885.  
  886.     'if user answered "NO", exit to this event..
  887.     If ans = vbNo Then Exit Sub
  888.  
  889. End If
  890.  RubikCube1.ResetCube
  891. 'scramble cube..
  892. RubikCube1.ScrambleCube
  893.  
  894. 'display that timer has been started..
  895. MsgBox "Timer starts now!!", vbInformation, Me.Caption
  896.  
  897. lblTimer.Caption = IIf(level = 0, "Easy :", IIf(level = 1, "Midium :", "Hard :")) & " - " & "00:00:00"
  898.  
  899. 'enable Timer2 control..
  900. Timer2.Enabled = True
  901. For i = 0 To List1.ListCount - 1
  902. Select Case List1.List(i)
  903. Case 1, 3, 5, 7, 9, 11
  904. Label2.Caption = Format$(Val(Label2.Caption) + 1, "0000")
  905. Case 2, 4, 6, 8, 10, 12
  906. Label2.Caption = Format$(Val(Label2.Caption) + 3, "0000")
  907. End Select
  908. Next
  909.  
  910. Option1(0).Enabled = False: Option1(1).Enabled = False: Option1(2).Enabled = False
  911. End Sub
  912.  
  913. Private Sub Command2_Click()
  914. Label3.Caption = "0"
  915. 'ask if Time Elapsed is enabled..
  916. If Timer2.Enabled = True Then
  917.     
  918.     'ask if user wants to reset cube..
  919.     ans = MsgBox("Are you sure?", _
  920.         vbQuestion + vbYesNo, "Reset Cube")
  921.  
  922.     'if user answered "NO", exit to this event..
  923.     If ans = vbNo Then Exit Sub
  924.     
  925.     'display elpased time..
  926.     MsgBox lblTimer.Caption, , Me.Caption
  927.     
  928.     'disable Timer2..
  929.     Timer2.Enabled = False
  930.  
  931. End If
  932.  
  933. 'reset cube..
  934. RubikCube1.ResetCube
  935.  
  936. 'reset lblTimer to default caption..
  937. lblTimer.Caption = IIf(level = 0, "Easy :", IIf(level = 1, "Midium :", "Hard :")) & " - " & "00:00:00"
  938.  
  939. Label2.Caption = "0000"
  940. 'display message..
  941. MsgBox "Rubik's cube has been reset.", vbInformation, Me.Caption
  942.  
  943. Option1(0).Enabled = True: Option1(1).Enabled = True: Option1(2).Enabled = True
  944. End Sub
  945.  
  946. Private Sub Command3_Click()
  947.  
  948. Label3.Caption = "0"
  949. kk = 1
  950. For i = List1.ListCount - 1 To 0 Step -1
  951. Select Case List1.List(i)
  952.         
  953.         Case 1
  954.          cmdFCCWise_Click
  955.          dome
  956.          
  957.         Case 2
  958.          For ii = 1 To 3
  959.           cmdFCCWise_Click
  960.           dome
  961.          Next
  962.  
  963.         Case 3
  964.          cmdRCCWise_Click
  965.          dome
  966.          
  967.         Case 4
  968.           For ii = 1 To 3
  969.            cmdRCCWise_Click
  970.            dome
  971.           Next
  972.           
  973.         Case 5
  974.          cmdLCCWise_Click
  975.          dome
  976.          
  977.         Case 6
  978.           For ii = 1 To 3
  979.            cmdLCCWise_Click
  980.            dome
  981.           Next
  982.          
  983.         Case 7
  984.           cmdBCCWise_Click
  985.           dome
  986.         
  987.         Case 8
  988.           For ii = 1 To 3
  989.            cmdBCCWise_Click
  990.            dome
  991.           Next
  992.           
  993.         Case 9
  994.          cmdTopCCWise_Click
  995.           dome
  996.           
  997.         Case 10
  998.           For ii = 1 To 3
  999.            cmdTopCCWise_Click
  1000.            dome
  1001.           Next
  1002.  
  1003.         Case 11
  1004.           cmdBottomCCWise_Click
  1005.           dome
  1006.         Case 12
  1007.           For ii = 1 To 3
  1008.            cmdBottomCCWise_Click
  1009.            dome
  1010.           Next
  1011.           
  1012.         Case 13
  1013.           cmdFCWise_Click
  1014.           dome
  1015.           
  1016.         Case 14
  1017.           cmdRCWise_Click
  1018.           dome
  1019.           
  1020.          Case 15
  1021.           cmdLCWise_Click
  1022.           dome
  1023.           
  1024.         Case 16
  1025.          cmdBCWise_Click
  1026.           dome
  1027.           
  1028.         Case 17
  1029.           cmdTopCWise_Click
  1030.           dome
  1031.           
  1032.          Case 18
  1033.           cmdBottomCWise_Click
  1034.           dome
  1035.           
  1036.          Case 19
  1037.          cmdTMBCCWise_Click
  1038.          dome
  1039.          
  1040.          Case 20
  1041.          cmdTMBCWise_Click
  1042.          dome
  1043.          
  1044.          Case 21
  1045.          cmdFMBCWise_Click
  1046.          dome
  1047.          
  1048.          Case 22
  1049.          cmdFMBCCWise_Click
  1050.          dome
  1051.          
  1052.          Case 23
  1053.          cmdLMRCWise_Click
  1054.          dome
  1055.          
  1056.          Case 24
  1057.          cmdLMRCCWise_Click
  1058.          dome
  1059.          
  1060.          
  1061.     End Select
  1062.  
  1063. Next
  1064. List1.Clear
  1065. Option1(0).Enabled = True: Option1(1).Enabled = True: Option1(2).Enabled = True
  1066. End Sub
  1067. Sub dome()
  1068. Label2.Caption = Format$(Val(Label2.Caption) - 1, "0000")
  1069. End Sub
  1070. Sub gome()
  1071. Label2.Caption = Format$(Val(Label2.Caption) + 1, "0000")
  1072. End Sub
  1073.  
  1074.  
  1075. Private Sub Form_Load()
  1076. SetWindowRgn Me.hwnd, CreateRoundRectRgn(0, 0, Me.Width / Screen.TwipsPerPixelX, Me.Height / Screen.TwipsPerPixelY, 75, 75), True
  1077. 'SetWindowRgn Frame1.hwnd, CreateRoundRectRgn(0, 0, Frame1.Width / Screen.TwipsPerPixelX, Frame1.Height / Screen.TwipsPerPixelY, 50, 50), True
  1078. Label3.Caption = "0"
  1079. kk = Val(Label3.Caption)
  1080. 'level = 0
  1081. Option1_Click (Index)
  1082. Me.Move 2500, -100
  1083. End Sub
  1084.  
  1085. Private Sub Image2_Click()
  1086. Unload Me
  1087. End
  1088. End Sub
  1089.  
  1090. Private Sub Option1_Click(Index As Integer)
  1091. level = Index
  1092. lblTimer.Caption = IIf(level = 0, "Easy :", IIf(level = 1, "Midium :", "Hard :")) & " - " & "00:00:00"
  1093. End Sub
  1094.  
  1095. Private Sub RestMe_Click()
  1096. Command2_Click
  1097. End Sub
  1098.  
  1099. Private Sub Scramble_Click()
  1100. kk = 0
  1101. Command1_Click
  1102. End Sub
  1103.  
  1104. Private Sub SolveMe_Click()
  1105. Command3_Click
  1106. End Sub
  1107.  
  1108. Private Sub Timer2_Timer()
  1109.  
  1110.     Dim T As Date
  1111.     Dim M As Integer
  1112.     Dim S As Integer
  1113.   
  1114.     'increase elapsed time
  1115.     ElapsedSeconds = ElapsedSeconds + 1
  1116.     'show elapsed time in status window
  1117.     T = TimeSerial(0, 0, ElapsedSeconds)
  1118.     lblTimer.Caption = IIf(level = 0, "Easy :", IIf(level = 1, "Midium :", "Hard :")) & " - " & Format(T, "hh:nn:ss")
  1119.  
  1120. Check_Answer
  1121. End Sub
  1122.  
  1123. Sub Check_Answer()
  1124.  
  1125. If RubikCube1.GetCube = "RRRRRRRRRYYYYYYYYYPPPPPPPPPWWWWWWWWWBBBBBBBBBGGGGGGGGG" Then
  1126.     Timer2.Enabled = False
  1127.     MsgBox "You Have Complete My Cube!!" & _
  1128.         vbCrLf & lblTimer.Caption, vbInformation, "Congratulations"
  1129.  
  1130.     'reset lblTimer to default caption..
  1131.     lblTimer.Caption = IIf(level = 0, "Easy :", IIf(level = 1, "Midium :", "Hard :")) & " - " & "00:00:00"
  1132. ' sndPlaySound App.Path & "\sound\won.wav", 1
  1133. End If
  1134.  
  1135. End Sub
  1136.  
  1137.  
  1138.  
  1139.