home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / enigma10 / enigma10.exe / Main / Form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-06-12  |  36.7 KB  |  1,154 lines

  1. VERSION 5.00
  2. Object = "{FE0065C0-1B7B-11CF-9D53-00AA003C9CB6}#1.0#0"; "COMCT232.OCX"
  3. Object = "{3B7C8863-D78F-101B-B9B5-04021C009402}#1.1#0"; "RICHTX32.OCX"
  4. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
  5. Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.2#0"; "COMCTL32.OCX"
  6. Object = "{EBC8A4CE-64DD-11D1-AEA4-00A024966898}#1.0#0"; "ENIGMA10.OCX"
  7. Begin VB.Form Form1 
  8.    BorderStyle     =   3  'Fixed Dialog
  9.    Caption         =   "Enigma 10 Sample Program"
  10.    ClientHeight    =   4755
  11.    ClientLeft      =   45
  12.    ClientTop       =   330
  13.    ClientWidth     =   9210
  14.    LinkTopic       =   "Form1"
  15.    LockControls    =   -1  'True
  16.    MaxButton       =   0   'False
  17.    MinButton       =   0   'False
  18.    ScaleHeight     =   4755
  19.    ScaleWidth      =   9210
  20.    ShowInTaskbar   =   0   'False
  21.    StartUpPosition =   2  'CenterScreen
  22.    Begin Enigma10.EnigmaControl EnigmaControl1 
  23.       Left            =   4935
  24.       Top             =   2220
  25.       _ExtentX        =   847
  26.       _ExtentY        =   847
  27.    End
  28.    Begin ComctlLib.ProgressBar ProgressBar1 
  29.       Height          =   360
  30.       Left            =   5520
  31.       TabIndex        =   71
  32.       Top             =   4215
  33.       Width           =   3570
  34.       _ExtentX        =   6297
  35.       _ExtentY        =   635
  36.       _Version        =   327680
  37.       Appearance      =   0
  38.       MouseIcon       =   "Form1.frx":0000
  39.    End
  40.    Begin VB.CommandButton Command1 
  41.       Caption         =   "Encrypt"
  42.       Height          =   375
  43.       Left            =   5520
  44.       TabIndex        =   48
  45.       Top             =   3315
  46.       Width           =   1650
  47.    End
  48.    Begin VB.CommandButton Command4 
  49.       Caption         =   "Swap"
  50.       Height          =   375
  51.       Left            =   7290
  52.       TabIndex        =   47
  53.       Top             =   3315
  54.       Width           =   1800
  55.    End
  56.    Begin MSComDlg.CommonDialog CommonDialog1 
  57.       Left            =   4845
  58.       Top             =   90
  59.       _ExtentX        =   847
  60.       _ExtentY        =   847
  61.       _Version        =   327680
  62.    End
  63.    Begin VB.CommandButton Command3 
  64.       Caption         =   "Encrypt File"
  65.       Height          =   375
  66.       Left            =   7290
  67.       TabIndex        =   25
  68.       Top             =   3765
  69.       Width           =   1800
  70.    End
  71.    Begin VB.Frame Frame3 
  72.       Caption         =   "Start Positions"
  73.       Height          =   1020
  74.       Left            =   5490
  75.       TabIndex        =   23
  76.       Top             =   2175
  77.       Width           =   3615
  78.       Begin ComCtl2.UpDown UpDown2 
  79.          Height          =   270
  80.          Index           =   15
  81.          Left            =   495
  82.          TabIndex        =   36
  83.          Top             =   630
  84.          Width           =   240
  85.          _ExtentX        =   423
  86.          _ExtentY        =   476
  87.          _Version        =   327680
  88.          Enabled         =   -1  'True
  89.       End
  90.       Begin ComCtl2.UpDown UpDown2 
  91.          Height          =   270
  92.          Index           =   16
  93.          Left            =   1185
  94.          TabIndex        =   37
  95.          Top             =   630
  96.          Width           =   240
  97.          _ExtentX        =   423
  98.          _ExtentY        =   476
  99.          _Version        =   327680
  100.          Enabled         =   -1  'True
  101.       End
  102.       Begin ComCtl2.UpDown UpDown2 
  103.          Height          =   270
  104.          Index           =   17
  105.          Left            =   1875
  106.          TabIndex        =   38
  107.          Top             =   630
  108.          Width           =   240
  109.          _ExtentX        =   423
  110.          _ExtentY        =   476
  111.          _Version        =   327680
  112.          Enabled         =   -1  'True
  113.       End
  114.       Begin ComCtl2.UpDown UpDown2 
  115.          Height          =   270
  116.          Index           =   18
  117.          Left            =   2565
  118.          TabIndex        =   39
  119.          Top             =   630
  120.          Width           =   240
  121.          _ExtentX        =   423
  122.          _ExtentY        =   476
  123.          _Version        =   327680
  124.          Enabled         =   -1  'True
  125.       End
  126.       Begin ComCtl2.UpDown UpDown2 
  127.          Height          =   270
  128.          Index           =   19
  129.          Left            =   3240
  130.          TabIndex        =   40
  131.          Top             =   630
  132.          Width           =   240
  133.          _ExtentX        =   423
  134.          _ExtentY        =   476
  135.          _Version        =   327680
  136.          Enabled         =   -1  'True
  137.       End
  138.       Begin ComCtl2.UpDown UpDown2 
  139.          Height          =   270
  140.          Index           =   10
  141.          Left            =   480
  142.          TabIndex        =   51
  143.          Top             =   285
  144.          Width           =   240
  145.          _ExtentX        =   423
  146.          _ExtentY        =   476
  147.          _Version        =   327680
  148.          Enabled         =   -1  'True
  149.       End
  150.       Begin ComCtl2.UpDown UpDown2 
  151.          Height          =   270
  152.          Index           =   11
  153.          Left            =   1170
  154.          TabIndex        =   52
  155.          Top             =   285
  156.          Width           =   240
  157.          _ExtentX        =   423
  158.          _ExtentY        =   476
  159.          _Version        =   327680
  160.          Enabled         =   -1  'True
  161.       End
  162.       Begin ComCtl2.UpDown UpDown2 
  163.          Height          =   270
  164.          Index           =   12
  165.          Left            =   1860
  166.          TabIndex        =   53
  167.          Top             =   285
  168.          Width           =   240
  169.          _ExtentX        =   423
  170.          _ExtentY        =   476
  171.          _Version        =   327680
  172.          Enabled         =   -1  'True
  173.       End
  174.       Begin ComCtl2.UpDown UpDown2 
  175.          Height          =   270
  176.          Index           =   13
  177.          Left            =   2550
  178.          TabIndex        =   54
  179.          Top             =   285
  180.          Width           =   240
  181.          _ExtentX        =   423
  182.          _ExtentY        =   476
  183.          _Version        =   327680
  184.          Enabled         =   -1  'True
  185.       End
  186.       Begin ComCtl2.UpDown UpDown2 
  187.          Height          =   270
  188.          Index           =   14
  189.          Left            =   3225
  190.          TabIndex        =   55
  191.          Top             =   285
  192.          Width           =   240
  193.          _ExtentX        =   423
  194.          _ExtentY        =   476
  195.          _Version        =   327680
  196.          Enabled         =   -1  'True
  197.       End
  198.       Begin VB.Label Label3 
  199.          Alignment       =   2  'Center
  200.          BackColor       =   &H80000009&
  201.          BorderStyle     =   1  'Fixed Single
  202.          Height          =   270
  203.          Index           =   10
  204.          Left            =   90
  205.          TabIndex        =   60
  206.          Top             =   285
  207.          Width           =   360
  208.       End
  209.       Begin VB.Label Label3 
  210.          Alignment       =   2  'Center
  211.          BackColor       =   &H80000009&
  212.          BorderStyle     =   1  'Fixed Single
  213.          Height          =   270
  214.          Index           =   11
  215.          Left            =   780
  216.          TabIndex        =   59
  217.          Top             =   285
  218.          Width           =   360
  219.       End
  220.       Begin VB.Label Label3 
  221.          Alignment       =   2  'Center
  222.          BackColor       =   &H80000009&
  223.          BorderStyle     =   1  'Fixed Single
  224.          Height          =   270
  225.          Index           =   12
  226.          Left            =   1470
  227.          TabIndex        =   58
  228.          Top             =   285
  229.          Width           =   360
  230.       End
  231.       Begin VB.Label Label3 
  232.          Alignment       =   2  'Center
  233.          BackColor       =   &H80000009&
  234.          BorderStyle     =   1  'Fixed Single
  235.          Height          =   270
  236.          Index           =   13
  237.          Left            =   2160
  238.          TabIndex        =   57
  239.          Top             =   285
  240.          Width           =   360
  241.       End
  242.       Begin VB.Label Label3 
  243.          Alignment       =   2  'Center
  244.          BackColor       =   &H80000009&
  245.          BorderStyle     =   1  'Fixed Single
  246.          Height          =   270
  247.          Index           =   14
  248.          Left            =   2835
  249.          TabIndex        =   56
  250.          Top             =   285
  251.          Width           =   360
  252.       End
  253.       Begin VB.Label Label3 
  254.          Alignment       =   2  'Center
  255.          BackColor       =   &H80000009&
  256.          BorderStyle     =   1  'Fixed Single
  257.          Height          =   270
  258.          Index           =   15
  259.          Left            =   105
  260.          TabIndex        =   45
  261.          Top             =   630
  262.          Width           =   360
  263.       End
  264.       Begin VB.Label Label3 
  265.          Alignment       =   2  'Center
  266.          BackColor       =   &H80000009&
  267.          BorderStyle     =   1  'Fixed Single
  268.          Height          =   270
  269.          Index           =   16
  270.          Left            =   795
  271.          TabIndex        =   44
  272.          Top             =   630
  273.          Width           =   360
  274.       End
  275.       Begin VB.Label Label3 
  276.          Alignment       =   2  'Center
  277.          BackColor       =   &H80000009&
  278.          BorderStyle     =   1  'Fixed Single
  279.          Height          =   270
  280.          Index           =   17
  281.          Left            =   1485
  282.          TabIndex        =   43
  283.          Top             =   630
  284.          Width           =   360
  285.       End
  286.       Begin VB.Label Label3 
  287.          Alignment       =   2  'Center
  288.          BackColor       =   &H80000009&
  289.          BorderStyle     =   1  'Fixed Single
  290.          Height          =   270
  291.          Index           =   18
  292.          Left            =   2175
  293.          TabIndex        =   42
  294.          Top             =   630
  295.          Width           =   360
  296.       End
  297.       Begin VB.Label Label3 
  298.          Alignment       =   2  'Center
  299.          BackColor       =   &H80000009&
  300.          BorderStyle     =   1  'Fixed Single
  301.          Height          =   270
  302.          Index           =   19
  303.          Left            =   2850
  304.          TabIndex        =   41
  305.          Top             =   630
  306.          Width           =   360
  307.       End
  308.    End
  309.    Begin VB.Frame Frame2 
  310.       Caption         =   "Ring Settings"
  311.       Height          =   1020
  312.       Left            =   5490
  313.       TabIndex        =   12
  314.       Top             =   1095
  315.       Width           =   3615
  316.       Begin ComCtl2.UpDown UpDown2 
  317.          Height          =   270
  318.          Index           =   0
  319.          Left            =   495
  320.          TabIndex        =   13
  321.          Top             =   300
  322.          Width           =   240
  323.          _ExtentX        =   423
  324.          _ExtentY        =   476
  325.          _Version        =   327680
  326.          Enabled         =   -1  'True
  327.       End
  328.       Begin ComCtl2.UpDown UpDown2 
  329.          Height          =   270
  330.          Index           =   1
  331.          Left            =   1185
  332.          TabIndex        =   14
  333.          Top             =   300
  334.          Width           =   240
  335.          _ExtentX        =   423
  336.          _ExtentY        =   476
  337.          _Version        =   327680
  338.          Enabled         =   -1  'True
  339.       End
  340.       Begin ComCtl2.UpDown UpDown2 
  341.          Height          =   270
  342.          Index           =   2
  343.          Left            =   1875
  344.          TabIndex        =   15
  345.          Top             =   300
  346.          Width           =   240
  347.          _ExtentX        =   423
  348.          _ExtentY        =   476
  349.          _Version        =   327680
  350.          Enabled         =   -1  'True
  351.       End
  352.       Begin ComCtl2.UpDown UpDown2 
  353.          Height          =   270
  354.          Index           =   3
  355.          Left            =   2565
  356.          TabIndex        =   16
  357.          Top             =   300
  358.          Width           =   240
  359.          _ExtentX        =   423
  360.          _ExtentY        =   476
  361.          _Version        =   327680
  362.          Enabled         =   -1  'True
  363.       End
  364.       Begin ComCtl2.UpDown UpDown2 
  365.          Height          =   270
  366.          Index           =   4
  367.          Left            =   3240
  368.          TabIndex        =   17
  369.          Top             =   300
  370.          Width           =   240
  371.          _ExtentX        =   423
  372.          _ExtentY        =   476
  373.          _Version        =   327680
  374.          Enabled         =   -1  'True
  375.       End
  376.       Begin ComCtl2.UpDown UpDown2 
  377.          Height          =   270
  378.          Index           =   5
  379.          Left            =   495
  380.          TabIndex        =   61
  381.          Top             =   630
  382.          Width           =   240
  383.          _ExtentX        =   423
  384.          _ExtentY        =   476
  385.          _Version        =   327680
  386.          Enabled         =   -1  'True
  387.       End
  388.       Begin ComCtl2.UpDown UpDown2 
  389.          Height          =   270
  390.          Index           =   6
  391.          Left            =   1185
  392.          TabIndex        =   62
  393.          Top             =   630
  394.          Width           =   240
  395.          _ExtentX        =   423
  396.          _ExtentY        =   476
  397.          _Version        =   327680
  398.          Enabled         =   -1  'True
  399.       End
  400.       Begin ComCtl2.UpDown UpDown2 
  401.          Height          =   270
  402.          Index           =   7
  403.          Left            =   1875
  404.          TabIndex        =   63
  405.          Top             =   630
  406.          Width           =   240
  407.          _ExtentX        =   423
  408.          _ExtentY        =   476
  409.          _Version        =   327680
  410.          Enabled         =   -1  'True
  411.       End
  412.       Begin ComCtl2.UpDown UpDown2 
  413.          Height          =   270
  414.          Index           =   8
  415.          Left            =   2565
  416.          TabIndex        =   64
  417.          Top             =   630
  418.          Width           =   240
  419.          _ExtentX        =   423
  420.          _ExtentY        =   476
  421.          _Version        =   327680
  422.          Enabled         =   -1  'True
  423.       End
  424.       Begin ComCtl2.UpDown UpDown2 
  425.          Height          =   270
  426.          Index           =   9
  427.          Left            =   3240
  428.          TabIndex        =   65
  429.          Top             =   630
  430.          Width           =   240
  431.          _ExtentX        =   423
  432.          _ExtentY        =   476
  433.          _Version        =   327680
  434.          Enabled         =   -1  'True
  435.       End
  436.       Begin VB.Label Label3 
  437.          Alignment       =   2  'Center
  438.          BackColor       =   &H80000009&
  439.          BorderStyle     =   1  'Fixed Single
  440.          Height          =   270
  441.          Index           =   5
  442.          Left            =   105
  443.          TabIndex        =   70
  444.          Top             =   630
  445.          Width           =   360
  446.       End
  447.       Begin VB.Label Label3 
  448.          Alignment       =   2  'Center
  449.          BackColor       =   &H80000009&
  450.          BorderStyle     =   1  'Fixed Single
  451.          Height          =   270
  452.          Index           =   6
  453.          Left            =   795
  454.          TabIndex        =   69
  455.          Top             =   630
  456.          Width           =   360
  457.       End
  458.       Begin VB.Label Label3 
  459.          Alignment       =   2  'Center
  460.          BackColor       =   &H80000009&
  461.          BorderStyle     =   1  'Fixed Single
  462.          Height          =   270
  463.          Index           =   7
  464.          Left            =   1485
  465.          TabIndex        =   68
  466.          Top             =   630
  467.          Width           =   360
  468.       End
  469.       Begin VB.Label Label3 
  470.          Alignment       =   2  'Center
  471.          BackColor       =   &H80000009&
  472.          BorderStyle     =   1  'Fixed Single
  473.          Height          =   270
  474.          Index           =   8
  475.          Left            =   2175
  476.          TabIndex        =   67
  477.          Top             =   630
  478.          Width           =   360
  479.       End
  480.       Begin VB.Label Label3 
  481.          Alignment       =   2  'Center
  482.          BackColor       =   &H80000009&
  483.          BorderStyle     =   1  'Fixed Single
  484.          Height          =   270
  485.          Index           =   9
  486.          Left            =   2850
  487.          TabIndex        =   66
  488.          Top             =   630
  489.          Width           =   360
  490.       End
  491.       Begin VB.Label Label3 
  492.          Alignment       =   2  'Center
  493.          BackColor       =   &H80000009&
  494.          BorderStyle     =   1  'Fixed Single
  495.          Height          =   270
  496.          Index           =   0
  497.          Left            =   105
  498.          TabIndex        =   22
  499.          Top             =   300
  500.          Width           =   360
  501.       End
  502.       Begin VB.Label Label3 
  503.          Alignment       =   2  'Center
  504.          BackColor       =   &H80000009&
  505.          BorderStyle     =   1  'Fixed Single
  506.          Height          =   270
  507.          Index           =   1
  508.          Left            =   795
  509.          TabIndex        =   21
  510.          Top             =   300
  511.          Width           =   360
  512.       End
  513.       Begin VB.Label Label3 
  514.          Alignment       =   2  'Center
  515.          BackColor       =   &H80000009&
  516.          BorderStyle     =   1  'Fixed Single
  517.          Height          =   270
  518.          Index           =   2
  519.          Left            =   1485
  520.          TabIndex        =   20
  521.          Top             =   300
  522.          Width           =   360
  523.       End
  524.       Begin VB.Label Label3 
  525.          Alignment       =   2  'Center
  526.          BackColor       =   &H80000009&
  527.          BorderStyle     =   1  'Fixed Single
  528.          Height          =   270
  529.          Index           =   3
  530.          Left            =   2175
  531.          TabIndex        =   19
  532.          Top             =   300
  533.          Width           =   360
  534.       End
  535.       Begin VB.Label Label3 
  536.          Alignment       =   2  'Center
  537.          BackColor       =   &H80000009&
  538.          BorderStyle     =   1  'Fixed Single
  539.          Height          =   270
  540.          Index           =   4
  541.          Left            =   2850
  542.          TabIndex        =   18
  543.          Top             =   300
  544.          Width           =   360
  545.       End
  546.    End
  547.    Begin VB.Frame Frame1 
  548.       Caption         =   "Rotor Order"
  549.       Height          =   1020
  550.       Left            =   5490
  551.       TabIndex        =   1
  552.       Top             =   30
  553.       Width           =   3615
  554.       Begin ComCtl2.UpDown UpDown1 
  555.          Height          =   270
  556.          Index           =   0
  557.          Left            =   495
  558.          TabIndex        =   2
  559.          Top             =   300
  560.          Width           =   240
  561.          _ExtentX        =   423
  562.          _ExtentY        =   476
  563.          _Version        =   327680
  564.          Enabled         =   -1  'True
  565.       End
  566.       Begin ComCtl2.UpDown UpDown1 
  567.          Height          =   270
  568.          Index           =   1
  569.          Left            =   1185
  570.          TabIndex        =   4
  571.          Top             =   300
  572.          Width           =   240
  573.          _ExtentX        =   423
  574.          _ExtentY        =   476
  575.          _Version        =   327680
  576.          Enabled         =   -1  'True
  577.       End
  578.       Begin ComCtl2.UpDown UpDown1 
  579.          Height          =   270
  580.          Index           =   2
  581.          Left            =   1875
  582.          TabIndex        =   6
  583.          Top             =   300
  584.          Width           =   240
  585.          _ExtentX        =   423
  586.          _ExtentY        =   476
  587.          _Version        =   327680
  588.          Enabled         =   -1  'True
  589.       End
  590.       Begin ComCtl2.UpDown UpDown1 
  591.          Height          =   270
  592.          Index           =   3
  593.          Left            =   2565
  594.          TabIndex        =   8
  595.          Top             =   300
  596.          Width           =   240
  597.          _ExtentX        =   423
  598.          _ExtentY        =   476
  599.          _Version        =   327680
  600.          Enabled         =   -1  'True
  601.       End
  602.       Begin ComCtl2.UpDown UpDown1 
  603.          Height          =   270
  604.          Index           =   4
  605.          Left            =   3240
  606.          TabIndex        =   10
  607.          Top             =   300
  608.          Width           =   240
  609.          _ExtentX        =   423
  610.          _ExtentY        =   476
  611.          _Version        =   327680
  612.          Enabled         =   -1  'True
  613.       End
  614.       Begin ComCtl2.UpDown UpDown1 
  615.          Height          =   270
  616.          Index           =   5
  617.          Left            =   495
  618.          TabIndex        =   26
  619.          Top             =   630
  620.          Width           =   240
  621.          _ExtentX        =   423
  622.          _ExtentY        =   476
  623.          _Version        =   327680
  624.          Enabled         =   -1  'True
  625.       End
  626.       Begin ComCtl2.UpDown UpDown1 
  627.          Height          =   270
  628.          Index           =   6
  629.          Left            =   1185
  630.          TabIndex        =   27
  631.          Top             =   630
  632.          Width           =   240
  633.          _ExtentX        =   423
  634.          _ExtentY        =   476
  635.          _Version        =   327680
  636.          Enabled         =   -1  'True
  637.       End
  638.       Begin ComCtl2.UpDown UpDown1 
  639.          Height          =   270
  640.          Index           =   7
  641.          Left            =   1875
  642.          TabIndex        =   28
  643.          Top             =   630
  644.          Width           =   240
  645.          _ExtentX        =   423
  646.          _ExtentY        =   476
  647.          _Version        =   327680
  648.          Enabled         =   -1  'True
  649.       End
  650.       Begin ComCtl2.UpDown UpDown1 
  651.          Height          =   270
  652.          Index           =   8
  653.          Left            =   2565
  654.          TabIndex        =   29
  655.          Top             =   630
  656.          Width           =   240
  657.          _ExtentX        =   423
  658.          _ExtentY        =   476
  659.          _Version        =   327680
  660.          Enabled         =   -1  'True
  661.       End
  662.       Begin ComCtl2.UpDown UpDown1 
  663.          Height          =   270
  664.          Index           =   9
  665.          Left            =   3240
  666.          TabIndex        =   30
  667.          Top             =   630
  668.          Width           =   240
  669.          _ExtentX        =   423
  670.          _ExtentY        =   476
  671.          _Version        =   327680
  672.          Enabled         =   -1  'True
  673.       End
  674.       Begin VB.Label Label2 
  675.          Alignment       =   2  'Center
  676.          BackColor       =   &H80000009&
  677.          BorderStyle     =   1  'Fixed Single
  678.          Height          =   270
  679.          Index           =   5
  680.          Left            =   105
  681.          TabIndex        =   35
  682.          Top             =   630
  683.          Width           =   360
  684.       End
  685.       Begin VB.Label Label2 
  686.          Alignment       =   2  'Center
  687.          BackColor       =   &H80000009&
  688.          BorderStyle     =   1  'Fixed Single
  689.          Height          =   270
  690.          Index           =   6
  691.          Left            =   795
  692.          TabIndex        =   34
  693.          Top             =   630
  694.          Width           =   360
  695.       End
  696.       Begin VB.Label Label2 
  697.          Alignment       =   2  'Center
  698.          BackColor       =   &H80000009&
  699.          BorderStyle     =   1  'Fixed Single
  700.          Height          =   270
  701.          Index           =   7
  702.          Left            =   1485
  703.          TabIndex        =   33
  704.          Top             =   630
  705.          Width           =   360
  706.       End
  707.       Begin VB.Label Label2 
  708.          Alignment       =   2  'Center
  709.          BackColor       =   &H80000009&
  710.          BorderStyle     =   1  'Fixed Single
  711.          Height          =   270
  712.          Index           =   8
  713.          Left            =   2175
  714.          TabIndex        =   32
  715.          Top             =   630
  716.          Width           =   360
  717.       End
  718.       Begin VB.Label Label2 
  719.          Alignment       =   2  'Center
  720.          BackColor       =   &H80000009&
  721.          BorderStyle     =   1  'Fixed Single
  722.          Height          =   270
  723.          Index           =   9
  724.          Left            =   2850
  725.          TabIndex        =   31
  726.          Top             =   630
  727.          Width           =   360
  728.       End
  729.       Begin VB.Label Label2 
  730.          Alignment       =   2  'Center
  731.          BackColor       =   &H80000009&
  732.          BorderStyle     =   1  'Fixed Single
  733.          Height          =   270
  734.          Index           =   4
  735.          Left            =   2850
  736.          TabIndex        =   11
  737.          Top             =   300
  738.          Width           =   360
  739.       End
  740.       Begin VB.Label Label2 
  741.          Alignment       =   2  'Center
  742.          BackColor       =   &H80000009&
  743.          BorderStyle     =   1  'Fixed Single
  744.          Height          =   270
  745.          Index           =   3
  746.          Left            =   2175
  747.          TabIndex        =   9
  748.          Top             =   300
  749.          Width           =   360
  750.       End
  751.       Begin VB.Label Label2 
  752.          Alignment       =   2  'Center
  753.          BackColor       =   &H80000009&
  754.          BorderStyle     =   1  'Fixed Single
  755.          Height          =   270
  756.          Index           =   2
  757.          Left            =   1485
  758.          TabIndex        =   7
  759.          Top             =   300
  760.          Width           =   360
  761.       End
  762.       Begin VB.Label Label2 
  763.          Alignment       =   2  'Center
  764.          BackColor       =   &H80000009&
  765.          BorderStyle     =   1  'Fixed Single
  766.          Height          =   270
  767.          Index           =   1
  768.          Left            =   795
  769.          TabIndex        =   5
  770.          Top             =   300
  771.          Width           =   360
  772.       End
  773.       Begin VB.Label Label2 
  774.          Alignment       =   2  'Center
  775.          BackColor       =   &H80000009&
  776.          BorderStyle     =   1  'Fixed Single
  777.          Height          =   270
  778.          Index           =   0
  779.          Left            =   105
  780.          TabIndex        =   3
  781.          Top             =   300
  782.          Width           =   360
  783.       End
  784.    End
  785.    Begin VB.CommandButton Command6 
  786.       Caption         =   "Clear"
  787.       Height          =   375
  788.       Left            =   5520
  789.       TabIndex        =   0
  790.       Top             =   3765
  791.       Width           =   1650
  792.    End
  793.    Begin RichTextLib.RichTextBox RichTextBox1 
  794.       Height          =   1950
  795.       Left            =   60
  796.       TabIndex        =   24
  797.       Top             =   285
  798.       Width           =   5340
  799.       _ExtentX        =   9419
  800.       _ExtentY        =   3440
  801.       _Version        =   327680
  802.       ScrollBars      =   3
  803.       TextRTF         =   $"Form1.frx":001C
  804.    End
  805.    Begin RichTextLib.RichTextBox RichTextBox2 
  806.       Height          =   1950
  807.       Left            =   60
  808.       TabIndex        =   46
  809.       Top             =   2625
  810.       Width           =   5340
  811.       _ExtentX        =   9419
  812.       _ExtentY        =   3440
  813.       _Version        =   327680
  814.       ScrollBars      =   3
  815.       TextRTF         =   $"Form1.frx":00E5
  816.    End
  817.    Begin VB.Label Label5 
  818.       AutoSize        =   -1  'True
  819.       Caption         =   "After"
  820.       Height          =   195
  821.       Left            =   75
  822.       TabIndex        =   50
  823.       Top             =   2400
  824.       Width           =   330
  825.    End
  826.    Begin VB.Label Label1 
  827.       AutoSize        =   -1  'True
  828.       Caption         =   "Before"
  829.       Height          =   195
  830.       Left            =   75
  831.       TabIndex        =   49
  832.       Top             =   60
  833.       Width           =   465
  834.    End
  835. Attribute VB_Name = "Form1"
  836. Attribute VB_GlobalNameSpace = False
  837. Attribute VB_Creatable = False
  838. Attribute VB_PredeclaredId = True
  839. Attribute VB_Exposed = False
  840. Private Sub Command1_Click()
  841.   EnigmaControl1.Text = RichTextBox1.Text
  842.   EnigmaControl1.Encrypt
  843.   RichTextBox2.Text = EnigmaControl1.Text
  844. End Sub
  845. Private Sub Command3_Click()
  846. CommonDialog1.DialogTitle = "Open Text File"
  847. CommonDialog1.Filter = "Any File (*.*)|*.*"
  848. CommonDialog1.Action = 1
  849. If CommonDialog1.filename <> "" Then
  850.   EnigmaControl1.SourceFile = CommonDialog1.filename
  851.   EnigmaControl1.TargetFile = "c:\test.txt"
  852.   EnigmaControl1.EncryptFile ProgressBar1
  853.   Kill CommonDialog1.filename
  854.   Name "c:\test.txt" As CommonDialog1.filename
  855.   ProgressBar1.Value = 0
  856. End If
  857. End Sub
  858. Private Sub EnigmaControl1_OnEncryption()
  859. MsgBox "Complete"
  860. End Sub
  861. Private Sub Command4_Click()
  862. RichTextBox1.Text = RichTextBox2.Text
  863. End Sub
  864. Private Sub Command6_Click()
  865. RichTextBox2.Text = ""
  866. End Sub
  867. Private Sub Form_Load()
  868. For x = 0 To 9
  869.   Label2(x) = Trim(Str(x + 1))
  870. For x = 0 To 19
  871.   Label3(x) = "1"
  872. RichTextBox1.Text = "This is sample text to encrypt..." & Chr(13) & Chr(10) & "AAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
  873. End Sub
  874. Private Sub UpDown1_DownClick(Index As Integer)
  875. If Val(Label2(Index)) <= 1 Then
  876.   Label2(Index) = 10
  877.   Select Case Index
  878.   Case 0
  879.     EnigmaControl1.RotorOrder1 = Val(Label2(Index))
  880.   Case 1
  881.     EnigmaControl1.RotorOrder2 = Val(Label2(Index))
  882.   Case 2
  883.     EnigmaControl1.RotorOrder3 = Val(Label2(Index))
  884.   Case 3
  885.     EnigmaControl1.RotorOrder4 = Val(Label2(Index))
  886.   Case 4
  887.     EnigmaControl1.RotorOrder5 = Val(Label2(Index))
  888.   Case 5
  889.     EnigmaControl1.RotorOrder6 = Val(Label2(Index))
  890.   Case 6
  891.     EnigmaControl1.RotorOrder7 = Val(Label2(Index))
  892.   Case 7
  893.     EnigmaControl1.RotorOrder8 = Val(Label2(Index))
  894.   Case 8
  895.     EnigmaControl1.RotorOrder9 = Val(Label2(Index))
  896.   Case 9
  897.     EnigmaControl1.RotorOrder10 = Val(Label2(Index))
  898.   End Select
  899.   Label2(Index) = Val(Label2(Index)) - 1
  900.   Select Case Index
  901.   Case 0
  902.     EnigmaControl1.RotorOrder1 = Val(Label2(Index))
  903.   Case 1
  904.     EnigmaControl1.RotorOrder2 = Val(Label2(Index))
  905.   Case 2
  906.     EnigmaControl1.RotorOrder3 = Val(Label2(Index))
  907.   Case 3
  908.     EnigmaControl1.RotorOrder4 = Val(Label2(Index))
  909.   Case 4
  910.     EnigmaControl1.RotorOrder5 = Val(Label2(Index))
  911.   Case 5
  912.     EnigmaControl1.RotorOrder6 = Val(Label2(Index))
  913.   Case 6
  914.     EnigmaControl1.RotorOrder7 = Val(Label2(Index))
  915.   Case 7
  916.     EnigmaControl1.RotorOrder8 = Val(Label2(Index))
  917.   Case 8
  918.     EnigmaControl1.RotorOrder9 = Val(Label2(Index))
  919.   Case 9
  920.     EnigmaControl1.RotorOrder10 = Val(Label2(Index))
  921.   End Select
  922. End If
  923. End Sub
  924. Private Sub UpDown1_UpClick(Index As Integer)
  925. If Val(Label2(Index)) >= 10 Then
  926.   Label2(Index) = 1
  927.   Select Case Index
  928.   Case 0
  929.     EnigmaControl1.RotorOrder1 = Val(Label2(Index))
  930.   Case 1
  931.     EnigmaControl1.RotorOrder2 = Val(Label2(Index))
  932.   Case 2
  933.     EnigmaControl1.RotorOrder3 = Val(Label2(Index))
  934.   Case 3
  935.     EnigmaControl1.RotorOrder4 = Val(Label2(Index))
  936.   Case 4
  937.     EnigmaControl1.RotorOrder5 = Val(Label2(Index))
  938.   Case 5
  939.     EnigmaControl1.RotorOrder6 = Val(Label2(Index))
  940.   Case 6
  941.     EnigmaControl1.RotorOrder7 = Val(Label2(Index))
  942.   Case 7
  943.     EnigmaControl1.RotorOrder8 = Val(Label2(Index))
  944.   Case 8
  945.     EnigmaControl1.RotorOrder9 = Val(Label2(Index))
  946.   Case 9
  947.     EnigmaControl1.RotorOrder10 = Val(Label2(Index))
  948.   End Select
  949.   Label2(Index) = Val(Label2(Index)) + 1
  950.   Select Case Index
  951.   Case 0
  952.     EnigmaControl1.RotorOrder1 = Val(Label2(Index))
  953.   Case 1
  954.     EnigmaControl1.RotorOrder2 = Val(Label2(Index))
  955.   Case 2
  956.     EnigmaControl1.RotorOrder3 = Val(Label2(Index))
  957.   Case 3
  958.     EnigmaControl1.RotorOrder4 = Val(Label2(Index))
  959.   Case 4
  960.     EnigmaControl1.RotorOrder5 = Val(Label2(Index))
  961.   Case 5
  962.     EnigmaControl1.RotorOrder6 = Val(Label2(Index))
  963.   Case 6
  964.     EnigmaControl1.RotorOrder7 = Val(Label2(Index))
  965.   Case 7
  966.     EnigmaControl1.RotorOrder8 = Val(Label2(Index))
  967.   Case 8
  968.     EnigmaControl1.RotorOrder9 = Val(Label2(Index))
  969.   Case 9
  970.     EnigmaControl1.RotorOrder10 = Val(Label2(Index))
  971.   End Select
  972. End If
  973. End Sub
  974. Private Sub UpDown2_DownClick(Index As Integer)
  975. If Val(Label3(Index)) <= 0 Then
  976.   Label3(Index) = 255
  977.   Select Case Index
  978.   Case 0
  979.     EnigmaControl1.RingSetting1 = Val(Label3(Index))
  980.   Case 1
  981.     EnigmaControl1.RingSetting2 = Val(Label3(Index))
  982.   Case 2
  983.     EnigmaControl1.RingSetting3 = Val(Label3(Index))
  984.   Case 3
  985.     EnigmaControl1.RingSetting4 = Val(Label3(Index))
  986.   Case 4
  987.     EnigmaControl1.RingSetting5 = Val(Label3(Index))
  988.   Case 5
  989.     EnigmaControl1.RingSetting6 = Val(Label3(Index))
  990.   Case 6
  991.     EnigmaControl1.RingSetting7 = Val(Label3(Index))
  992.   Case 7
  993.     EnigmaControl1.RingSetting8 = Val(Label3(Index))
  994.   Case 8
  995.     EnigmaControl1.RingSetting9 = Val(Label3(Index))
  996.   Case 9
  997.     EnigmaControl1.RingSetting10 = Val(Label3(Index))
  998.   Case 10
  999.     EnigmaControl1.StartPosition1 = Val(Label3(Index))
  1000.   Case 11
  1001.     EnigmaControl1.StartPosition2 = Val(Label3(Index))
  1002.   Case 12
  1003.     EnigmaControl1.StartPosition3 = Val(Label3(Index))
  1004.   Case 13
  1005.     EnigmaControl1.StartPosition4 = Val(Label3(Index))
  1006.   Case 14
  1007.     EnigmaControl1.StartPosition5 = Val(Label3(Index))
  1008.   Case 15
  1009.     EnigmaControl1.StartPosition6 = Val(Label3(Index))
  1010.   Case 16
  1011.     EnigmaControl1.StartPosition7 = Val(Label3(Index))
  1012.   Case 17
  1013.     EnigmaControl1.StartPosition8 = Val(Label3(Index))
  1014.   Case 18
  1015.     EnigmaControl1.StartPosition9 = Val(Label3(Index))
  1016.   Case 19
  1017.     EnigmaControl1.StartPosition10 = Val(Label3(Index))
  1018.   End Select
  1019.   Label3(Index) = Val(Label3(Index)) - 1
  1020.   Select Case Index
  1021.   Case 0
  1022.     EnigmaControl1.RingSetting1 = Val(Label3(Index))
  1023.   Case 1
  1024.     EnigmaControl1.RingSetting2 = Val(Label3(Index))
  1025.   Case 2
  1026.     EnigmaControl1.RingSetting3 = Val(Label3(Index))
  1027.   Case 3
  1028.     EnigmaControl1.RingSetting4 = Val(Label3(Index))
  1029.   Case 4
  1030.     EnigmaControl1.RingSetting5 = Val(Label3(Index))
  1031.   Case 5
  1032.     EnigmaControl1.RingSetting6 = Val(Label3(Index))
  1033.   Case 6
  1034.     EnigmaControl1.RingSetting7 = Val(Label3(Index))
  1035.   Case 7
  1036.     EnigmaControl1.RingSetting8 = Val(Label3(Index))
  1037.   Case 8
  1038.     EnigmaControl1.RingSetting9 = Val(Label3(Index))
  1039.   Case 9
  1040.     EnigmaControl1.RingSetting10 = Val(Label3(Index))
  1041.   Case 10
  1042.     EnigmaControl1.StartPosition1 = Val(Label3(Index))
  1043.   Case 11
  1044.     EnigmaControl1.StartPosition2 = Val(Label3(Index))
  1045.   Case 12
  1046.     EnigmaControl1.StartPosition3 = Val(Label3(Index))
  1047.   Case 13
  1048.     EnigmaControl1.StartPosition4 = Val(Label3(Index))
  1049.   Case 14
  1050.     EnigmaControl1.StartPosition5 = Val(Label3(Index))
  1051.   Case 15
  1052.     EnigmaControl1.StartPosition6 = Val(Label3(Index))
  1053.   Case 16
  1054.     EnigmaControl1.StartPosition7 = Val(Label3(Index))
  1055.   Case 17
  1056.     EnigmaControl1.StartPosition8 = Val(Label3(Index))
  1057.   Case 18
  1058.     EnigmaControl1.StartPosition9 = Val(Label3(Index))
  1059.   Case 19
  1060.     EnigmaControl1.StartPosition10 = Val(Label3(Index))
  1061.   End Select
  1062. End If
  1063. End Sub
  1064. Private Sub UpDown2_UpClick(Index As Integer)
  1065. If Val(Label3(Index)) >= 255 Then
  1066.   Label3(Index) = 0
  1067.   Select Case Index
  1068.   Case 0
  1069.     EnigmaControl1.RingSetting1 = Val(Label3(Index))
  1070.   Case 1
  1071.     EnigmaControl1.RingSetting2 = Val(Label3(Index))
  1072.   Case 2
  1073.     EnigmaControl1.RingSetting3 = Val(Label3(Index))
  1074.   Case 3
  1075.     EnigmaControl1.RingSetting4 = Val(Label3(Index))
  1076.   Case 4
  1077.     EnigmaControl1.RingSetting5 = Val(Label3(Index))
  1078.   Case 5
  1079.     EnigmaControl1.RingSetting6 = Val(Label3(Index))
  1080.   Case 6
  1081.     EnigmaControl1.RingSetting7 = Val(Label3(Index))
  1082.   Case 7
  1083.     EnigmaControl1.RingSetting8 = Val(Label3(Index))
  1084.   Case 8
  1085.     EnigmaControl1.RingSetting9 = Val(Label3(Index))
  1086.   Case 9
  1087.     EnigmaControl1.RingSetting10 = Val(Label3(Index))
  1088.   Case 10
  1089.     EnigmaControl1.StartPosition1 = Val(Label3(Index))
  1090.   Case 11
  1091.     EnigmaControl1.StartPosition2 = Val(Label3(Index))
  1092.   Case 12
  1093.     EnigmaControl1.StartPosition3 = Val(Label3(Index))
  1094.   Case 13
  1095.     EnigmaControl1.StartPosition4 = Val(Label3(Index))
  1096.   Case 14
  1097.     EnigmaControl1.StartPosition5 = Val(Label3(Index))
  1098.   Case 15
  1099.     EnigmaControl1.StartPosition6 = Val(Label3(Index))
  1100.   Case 16
  1101.     EnigmaControl1.StartPosition7 = Val(Label3(Index))
  1102.   Case 17
  1103.     EnigmaControl1.StartPosition8 = Val(Label3(Index))
  1104.   Case 18
  1105.     EnigmaControl1.StartPosition9 = Val(Label3(Index))
  1106.   Case 19
  1107.     EnigmaControl1.StartPosition10 = Val(Label3(Index))
  1108.   End Select
  1109.   Label3(Index) = Val(Label3(Index)) + 1
  1110.   Select Case Index
  1111.   Case 0
  1112.     EnigmaControl1.RingSetting1 = Val(Label3(Index))
  1113.   Case 1
  1114.     EnigmaControl1.RingSetting2 = Val(Label3(Index))
  1115.   Case 2
  1116.     EnigmaControl1.RingSetting3 = Val(Label3(Index))
  1117.   Case 3
  1118.     EnigmaControl1.RingSetting4 = Val(Label3(Index))
  1119.   Case 4
  1120.     EnigmaControl1.RingSetting5 = Val(Label3(Index))
  1121.   Case 5
  1122.     EnigmaControl1.RingSetting6 = Val(Label3(Index))
  1123.   Case 6
  1124.     EnigmaControl1.RingSetting7 = Val(Label3(Index))
  1125.   Case 7
  1126.     EnigmaControl1.RingSetting8 = Val(Label3(Index))
  1127.   Case 8
  1128.     EnigmaControl1.RingSetting9 = Val(Label3(Index))
  1129.   Case 9
  1130.     EnigmaControl1.RingSetting10 = Val(Label3(Index))
  1131.   Case 10
  1132.     EnigmaControl1.StartPosition1 = Val(Label3(Index))
  1133.   Case 11
  1134.     EnigmaControl1.StartPosition2 = Val(Label3(Index))
  1135.   Case 12
  1136.     EnigmaControl1.StartPosition3 = Val(Label3(Index))
  1137.   Case 13
  1138.     EnigmaControl1.StartPosition4 = Val(Label3(Index))
  1139.   Case 14
  1140.     EnigmaControl1.StartPosition5 = Val(Label3(Index))
  1141.   Case 15
  1142.     EnigmaControl1.StartPosition6 = Val(Label3(Index))
  1143.   Case 16
  1144.     EnigmaControl1.StartPosition7 = Val(Label3(Index))
  1145.   Case 17
  1146.     EnigmaControl1.StartPosition8 = Val(Label3(Index))
  1147.   Case 18
  1148.     EnigmaControl1.StartPosition9 = Val(Label3(Index))
  1149.   Case 19
  1150.     EnigmaControl1.StartPosition10 = Val(Label3(Index))
  1151.   End Select
  1152. End If
  1153. End Sub
  1154.