Advertisement
Larik

клава

Apr 23rd, 2019
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Public Class Form1
  2.  
  3.     Dim a As Double
  4.     Dim q As Integer ' CapsLock
  5.    Dim w As Integer ' Shift
  6.    Dim r As Integer ' Alt
  7.    Dim t As Integer ' Ctrl
  8.    Dim y As Integer ' Fn
  9.    Dim u As Integer ' F2
  10.    Dim i As Integer ' = на нумпаде
  11.    Dim o As Integer ' NumLock
  12.    Dim p As String ' Ctrl + C
  13.  
  14.  
  15.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  16.  
  17.  
  18.  
  19.     End Sub
  20.  
  21.     Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
  22.  
  23.  
  24.  
  25.     End Sub
  26.  
  27.     Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click 'Esc
  28.  
  29.         Close()
  30.  
  31.     End Sub
  32.  
  33.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  34.  
  35.         TextBox1.Text &= Button2.Text
  36.  
  37.         Button2.BackColor = Color.Red
  38.  
  39.         Timer1.Start()
  40.  
  41.     End Sub
  42.  
  43.     Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click 'F1
  44.  
  45.         If Button67.BackColor = Color.Green Then
  46.  
  47.             Button3.BackColor = Color.Green
  48.  
  49.             MessageBox.Show("Экранная клавиатура by Ларионов Сергей 13ПК", "Справка", MessageBoxButtons.OK, MessageBoxIcon.Information)
  50.  
  51.             Button4.Text = "2"
  52.  
  53.         Else
  54.  
  55.             TextBox1.Text &= Button3.Text
  56.  
  57.             Button3.BackColor = Color.Red
  58.  
  59.         End If
  60.  
  61.         Timer1.Start()
  62.  
  63.     End Sub
  64.  
  65.     Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click 'F2, 2
  66.  
  67.         If Button67.BackColor = Color.Green Then
  68.  
  69.             If u = 0 Then
  70.  
  71.                 Me.Width = 1090
  72.  
  73.                 TextBox1.Width = 1064
  74.  
  75.                 u = 1
  76.  
  77.                 Button67.BackColor = Color.White
  78.  
  79.                 y = 0
  80.  
  81.                 Button3.Text = "1"
  82.                 Button4.Text = "2"
  83.                 Button5.Text = "3"
  84.                 Button6.Text = "4"
  85.                 Button7.Text = "5"
  86.                 Button8.Text = "6"
  87.                 Button9.Text = "7"
  88.                 Button10.Text = "8"
  89.                 Button11.Text = "9"
  90.                 Button12.Text = "0"
  91.                 Button13.Text = "-"
  92.                 Button14.Text = "="
  93.  
  94.                 Button4.BackColor = Color.Green
  95.  
  96.             Else
  97.  
  98.                 Me.Width = 865
  99.  
  100.                 TextBox1.Width = 837
  101.  
  102.                 u = 0
  103.  
  104.                 Button67.BackColor = Color.White
  105.  
  106.                 y = 0
  107.  
  108.                 Button3.Text = "1"
  109.                 Button4.Text = "2"
  110.                 Button5.Text = "3"
  111.                 Button6.Text = "4"
  112.                 Button7.Text = "5"
  113.                 Button8.Text = "6"
  114.                 Button9.Text = "7"
  115.                 Button10.Text = "8"
  116.                 Button11.Text = "9"
  117.                 Button12.Text = "0"
  118.                 Button13.Text = "-"
  119.                 Button14.Text = "="
  120.  
  121.                 Button4.BackColor = Color.White
  122.  
  123.             End If
  124.  
  125.         Else
  126.  
  127.             TextBox1.Text &= Button4.Text
  128.  
  129.             Button4.BackColor = Color.Red
  130.  
  131.             Timer1.Start()
  132.  
  133.         End If
  134.  
  135.     End Sub
  136.  
  137.     Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click 'F3, 3
  138.  
  139.         If Button67.BackColor = Color.Green Then
  140.  
  141.             Button5.BackColor = Color.Green
  142.  
  143.             Button4.Text = "2"
  144.  
  145.         Else
  146.  
  147.             TextBox1.Text &= Button5.Text
  148.  
  149.             Button5.BackColor = Color.Red
  150.  
  151.         End If
  152.  
  153.         Timer1.Start()
  154.  
  155.     End Sub
  156.  
  157.     Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click 'F4, 4
  158.  
  159.         If Button67.BackColor = Color.Green Then
  160.  
  161.             Button6.BackColor = Color.Green
  162.  
  163.             Button4.Text = "2"
  164.  
  165.         Else
  166.  
  167.             TextBox1.Text &= Button6.Text
  168.  
  169.             Button6.BackColor = Color.Red
  170.  
  171.         End If
  172.  
  173.         Timer1.Start()
  174.  
  175.     End Sub
  176.  
  177.     Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click 'F5, 5
  178.  
  179.         If Button67.BackColor = Color.Green Then
  180.  
  181.             Button7.BackColor = Color.Green
  182.  
  183.             Button4.Text = "2"
  184.  
  185.         Else
  186.  
  187.             TextBox1.Text &= Button7.Text
  188.  
  189.             Button7.BackColor = Color.Red
  190.  
  191.         End If
  192.  
  193.         Timer1.Start()
  194.  
  195.     End Sub
  196.  
  197.     Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click 'F6, 6
  198.  
  199.         If Button67.BackColor = Color.Green Then
  200.  
  201.             Button8.BackColor = Color.Green
  202.  
  203.             Button4.Text = "2"
  204.  
  205.         Else
  206.  
  207.             TextBox1.Text &= Button8.Text
  208.  
  209.             Button8.BackColor = Color.Red
  210.  
  211.         End If
  212.  
  213.         Timer1.Start()
  214.  
  215.     End Sub
  216.  
  217.     Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click 'F7, 7
  218.  
  219.         If Button67.BackColor = Color.Green Then
  220.  
  221.             Button9.BackColor = Color.Green
  222.  
  223.             Button4.Text = "2"
  224.  
  225.         Else
  226.  
  227.             TextBox1.Text &= Button9.Text
  228.  
  229.             Button9.BackColor = Color.Red
  230.  
  231.         End If
  232.  
  233.         Timer1.Start()
  234.  
  235.     End Sub
  236.  
  237.     Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click 'F8, 8
  238.  
  239.         If Button67.BackColor = Color.Green Then
  240.  
  241.             Button10.BackColor = Color.Green
  242.  
  243.             Button4.Text = "2"
  244.  
  245.         Else
  246.  
  247.             TextBox1.Text &= Button10.Text
  248.  
  249.             Button10.BackColor = Color.Red
  250.  
  251.         End If
  252.  
  253.         Timer1.Start()
  254.  
  255.     End Sub
  256.  
  257.     Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click 'F9, 9
  258.  
  259.         If Button67.BackColor = Color.Green Then
  260.  
  261.             Button11.BackColor = Color.Green
  262.  
  263.             If TextBox1.Text = "Превет" Then
  264.  
  265.                 TextBox1.Text = "Привет"
  266.  
  267.             ElseIf TextBox1.Text = "превет" Then
  268.  
  269.                 TextBox1.Text = "привет"
  270.  
  271.             ElseIf TextBox1.Text = "Превед" Then
  272.  
  273.                 TextBox1.Text = "Привет"
  274.  
  275.             ElseIf TextBox1.Text = "Привед" Then
  276.  
  277.                 TextBox1.Text = "Привет"
  278.  
  279.             ElseIf TextBox1.Text = "привед" Then
  280.  
  281.                 TextBox1.Text = "привет"
  282.  
  283.             End If
  284.  
  285.             If TextBox1.Text = "Как дила" Then
  286.  
  287.                 TextBox1.Text = "Как дела"
  288.  
  289.             End If
  290.  
  291.             Button4.Text = "2"
  292.  
  293.         Else
  294.  
  295.             TextBox1.Text &= Button11.Text
  296.  
  297.             Button11.BackColor = Color.Red
  298.  
  299.         End If
  300.  
  301.         Timer1.Start()
  302.  
  303.     End Sub
  304.  
  305.     Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click 'F10, 0
  306.  
  307.         If Button67.BackColor = Color.Green Then
  308.  
  309.             Button12.BackColor = Color.Green
  310.  
  311.             Button4.Text = "2"
  312.  
  313.         Else
  314.  
  315.             TextBox1.Text &= Button12.Text
  316.  
  317.             Button12.BackColor = Color.Red
  318.  
  319.         End If
  320.  
  321.         Timer1.Start()
  322.  
  323.     End Sub
  324.  
  325.     Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click 'F11, -
  326.  
  327.         If Button67.BackColor = Color.Green Then
  328.  
  329.             Button13.BackColor = Color.Green
  330.  
  331.             Button4.Text = "2"
  332.  
  333.         Else
  334.  
  335.             TextBox1.Text &= Button13.Text
  336.  
  337.             Button13.BackColor = Color.Red
  338.  
  339.         End If
  340.  
  341.         Timer1.Start()
  342.  
  343.     End Sub
  344.  
  345.     Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click 'F12, =
  346.  
  347.         If Button67.BackColor = Color.Green Then
  348.  
  349.             Button14.BackColor = Color.Green
  350.  
  351.             Button4.Text = "2"
  352.  
  353.         Else
  354.  
  355.             TextBox1.Text &= Button14.Text
  356.  
  357.             Button14.BackColor = Color.Red
  358.  
  359.         End If
  360.  
  361.         Timer1.Start()
  362.  
  363.     End Sub
  364.  
  365.     Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click ' backspace
  366.  
  367.         TextBox1.Clear()
  368.  
  369.         Button15.BackColor = Color.Green
  370.  
  371.         Timer1.Start()
  372.     End Sub
  373.  
  374.     Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button16.Click
  375.  
  376.         TextBox1.Text &= "    "
  377.  
  378.         Button16.BackColor = Color.Green
  379.  
  380.         Timer1.Start()
  381.  
  382.     End Sub
  383.  
  384.     Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button17.Click
  385.         TextBox1.Text &= Button17.Text
  386.  
  387.         Button17.BackColor = Color.Red
  388.  
  389.         Timer1.Start()
  390.  
  391.     End Sub
  392.  
  393.     Private Sub Button18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button18.Click
  394.         TextBox1.Text &= Button18.Text
  395.  
  396.         Button18.BackColor = Color.Red
  397.  
  398.         Timer1.Start()
  399.  
  400.     End Sub
  401.  
  402.     Private Sub Button19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button19.Click
  403.         TextBox1.Text &= Button19.Text
  404.  
  405.         Button19.BackColor = Color.Red
  406.  
  407.         Timer1.Start()
  408.  
  409.     End Sub
  410.  
  411.     Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click
  412.         TextBox1.Text &= Button20.Text
  413.  
  414.         Button20.BackColor = Color.Red
  415.  
  416.         Timer1.Start()
  417.  
  418.     End Sub
  419.  
  420.     Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button21.Click
  421.         TextBox1.Text &= Button21.Text
  422.  
  423.         Button21.BackColor = Color.Red
  424.  
  425.         Timer1.Start()
  426.     End Sub
  427.  
  428.     Private Sub Button22_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button22.Click
  429.         TextBox1.Text &= Button22.Text
  430.  
  431.         Button22.BackColor = Color.Red
  432.  
  433.         Timer1.Start()
  434.     End Sub
  435.  
  436.     Private Sub Button23_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button23.Click
  437.         TextBox1.Text &= Button23.Text
  438.  
  439.         Button23.BackColor = Color.Red
  440.  
  441.         Timer1.Start()
  442.     End Sub
  443.  
  444.     Private Sub Button24_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button24.Click
  445.         TextBox1.Text &= Button24.Text
  446.  
  447.         Button24.BackColor = Color.Red
  448.  
  449.         Timer1.Start()
  450.     End Sub
  451.  
  452.     Private Sub Button25_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button25.Click
  453.         TextBox1.Text &= Button25.Text
  454.  
  455.         Button25.BackColor = Color.Red
  456.  
  457.         Timer1.Start()
  458.     End Sub
  459.  
  460.     Private Sub Button26_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button26.Click
  461.         TextBox1.Text &= Button26.Text
  462.  
  463.         Button26.BackColor = Color.Red
  464.  
  465.         Timer1.Start()
  466.     End Sub
  467.  
  468.     Private Sub Button27_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button27.Click
  469.         TextBox1.Text &= Button27.Text
  470.  
  471.         Button27.BackColor = Color.Red
  472.  
  473.         Timer1.Start()
  474.     End Sub
  475.  
  476.     Private Sub Button28_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button28.Click
  477.         TextBox1.Text &= Button28.Text
  478.  
  479.         Button28.BackColor = Color.Red
  480.  
  481.         Timer1.Start()
  482.  
  483.     End Sub
  484.  
  485.     Private Sub Button29_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button29.Click
  486.         TextBox1.Text &= Button29.Text
  487.  
  488.         Button29.BackColor = Color.Red
  489.  
  490.         Timer1.Start()
  491.     End Sub
  492.  
  493.     Private Sub Button30_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button30.Click ' del
  494.        TextBox1.Clear()
  495.  
  496.         Button30.BackColor = Color.Green
  497.     End Sub
  498.  
  499.     Private Sub Button31_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button31.Click ' CapsLock
  500.  
  501.         If r = 0 Then
  502.  
  503.             If q = 0 Then
  504.  
  505.                 Button31.BackColor = Color.Green
  506.  
  507.                 Button2.Text = "Ё"
  508.                 Button17.Text = "Й"
  509.                 Button18.Text = "Ц"
  510.                 Button19.Text = "У"
  511.                 Button20.Text = "К"
  512.                 Button21.Text = "Е"
  513.                 Button22.Text = "Н"
  514.                 Button23.Text = "Г"
  515.                 Button24.Text = "Ш"
  516.                 Button25.Text = "Щ"
  517.                 Button26.Text = "З"
  518.                 Button27.Text = "Х"
  519.                 Button28.Text = "Ъ"
  520.                 Button32.Text = "Ф"
  521.                 Button33.Text = "Ы"
  522.                 Button34.Text = "В"
  523.                 Button35.Text = "А"
  524.                 Button36.Text = "П"
  525.                 Button37.Text = "Р"
  526.                 Button38.Text = "О"
  527.                 Button39.Text = "Л"
  528.                 Button40.Text = "Д"
  529.                 Button41.Text = "Ж"
  530.                 Button42.Text = "Э"
  531.                 Button45.Text = "Я"
  532.                 Button46.Text = "Ч"
  533.                 Button47.Text = "С"
  534.                 Button48.Text = "М"
  535.                 Button49.Text = "И"
  536.                 Button50.Text = "Т"
  537.                 Button51.Text = "Ь"
  538.                 Button52.Text = "Б"
  539.                 Button53.Text = "Ю"
  540.  
  541.                 q = 1
  542.  
  543.             Else
  544.  
  545.                 Button31.BackColor = Color.White
  546.  
  547.                 Button2.Text = "ё"
  548.                 Button17.Text = "й"
  549.                 Button18.Text = "ц"
  550.                 Button19.Text = "у"
  551.                 Button20.Text = "к"
  552.                 Button21.Text = "е"
  553.                 Button22.Text = "н"
  554.                 Button23.Text = "г"
  555.                 Button24.Text = "ш"
  556.                 Button25.Text = "щ"
  557.                 Button26.Text = "з"
  558.                 Button27.Text = "х"
  559.                 Button28.Text = "ъ"
  560.                 Button32.Text = "ф"
  561.                 Button33.Text = "ы"
  562.                 Button34.Text = "в"
  563.                 Button35.Text = "а"
  564.                 Button36.Text = "п"
  565.                 Button37.Text = "р"
  566.                 Button38.Text = "о"
  567.                 Button39.Text = "л"
  568.                 Button40.Text = "д"
  569.                 Button41.Text = "ж"
  570.                 Button42.Text = "э"
  571.                 Button45.Text = "я"
  572.                 Button46.Text = "ч"
  573.                 Button47.Text = "с"
  574.                 Button48.Text = "м"
  575.                 Button49.Text = "и"
  576.                 Button50.Text = "т"
  577.                 Button51.Text = "ь"
  578.                 Button52.Text = "б"
  579.                 Button53.Text = "ю"
  580.  
  581.                 q = 0
  582.  
  583.             End If
  584.  
  585.         ElseIf r = 1 Then
  586.  
  587.             If q = 0 Then
  588.  
  589.                 Button31.BackColor = Color.Green
  590.  
  591.                 Button2.Text = "`"
  592.                 Button17.Text = "Q"
  593.                 Button18.Text = "W"
  594.                 Button19.Text = "E"
  595.                 Button20.Text = "R"
  596.                 Button21.Text = "T"
  597.                 Button22.Text = "Y"
  598.                 Button23.Text = "U"
  599.                 Button24.Text = "I"
  600.                 Button25.Text = "O"
  601.                 Button26.Text = "P"
  602.                 Button27.Text = "["
  603.                 Button28.Text = "]"
  604.                 Button32.Text = "A"
  605.                 Button33.Text = "S"
  606.                 Button34.Text = "D"
  607.                 Button35.Text = "F"
  608.                 Button36.Text = "G"
  609.                 Button37.Text = "H"
  610.                 Button38.Text = "J"
  611.                 Button39.Text = "K"
  612.                 Button40.Text = "L"
  613.                 Button41.Text = ";"
  614.                 Button42.Text = "'"
  615.                 Button45.Text = "Z"
  616.                 Button46.Text = "X"
  617.                 Button47.Text = "C"
  618.                 Button48.Text = "V"
  619.                 Button49.Text = "B"
  620.                 Button50.Text = "N"
  621.                 Button51.Text = "M"
  622.                 Button52.Text = ","
  623.                 Button53.Text = "."
  624.  
  625.                 q = 1
  626.  
  627.             Else
  628.  
  629.                 Button31.BackColor = Color.White
  630.  
  631.                 Button2.Text = "`"
  632.                 Button17.Text = "q"
  633.                 Button18.Text = "w"
  634.                 Button19.Text = "e"
  635.                 Button20.Text = "r"
  636.                 Button21.Text = "t"
  637.                 Button22.Text = "y"
  638.                 Button23.Text = "u"
  639.                 Button24.Text = "i"
  640.                 Button25.Text = "o"
  641.                 Button26.Text = "p"
  642.                 Button27.Text = "["
  643.                 Button28.Text = "]"
  644.                 Button32.Text = "a"
  645.                 Button33.Text = "s"
  646.                 Button34.Text = "d"
  647.                 Button35.Text = "f"
  648.                 Button36.Text = "g"
  649.                 Button37.Text = "h"
  650.                 Button38.Text = "j"
  651.                 Button39.Text = "k"
  652.                 Button40.Text = "l"
  653.                 Button41.Text = ";"
  654.                 Button42.Text = "'"
  655.                 Button45.Text = "z"
  656.                 Button46.Text = "x"
  657.                 Button47.Text = "c"
  658.                 Button48.Text = "v"
  659.                 Button49.Text = "b"
  660.                 Button50.Text = "n"
  661.                 Button51.Text = "m"
  662.                 Button52.Text = ","
  663.                 Button53.Text = "."
  664.  
  665.                 q = 0
  666.  
  667.             End If
  668.  
  669.         End If
  670.  
  671.     End Sub
  672.  
  673.     Private Sub Button32_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button32.Click 'A, Ф
  674.  
  675.         If Button57.BackColor = Color.Green And Button63.BackColor = Color.Green Then
  676.  
  677.             Button32.BackColor = Color.Green
  678.  
  679.             TextBox1.BackColor = Color.SkyBlue
  680.  
  681.             Button57.BackColor = Color.White
  682.             Button63.BackColor = Color.White
  683.  
  684.             t = 0
  685.  
  686.         Else
  687.  
  688.             TextBox1.Text &= Button32.Text
  689.  
  690.             Button32.BackColor = Color.Red
  691.  
  692.         End If
  693.  
  694.         Timer1.Start()
  695.  
  696.     End Sub
  697.  
  698.     Private Sub Button33_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button33.Click
  699.         TextBox1.Text &= Button33.Text
  700.  
  701.         Button33.BackColor = Color.Red
  702.  
  703.         Timer1.Start()
  704.     End Sub
  705.  
  706.     Private Sub Button34_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button34.Click
  707.         TextBox1.Text &= Button34.Text
  708.  
  709.         Button34.BackColor = Color.Red
  710.  
  711.         Timer1.Start()
  712.     End Sub
  713.  
  714.     Private Sub Button35_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button35.Click
  715.         TextBox1.Text &= Button35.Text
  716.  
  717.         Button35.BackColor = Color.Red
  718.  
  719.         Timer1.Start()
  720.     End Sub
  721.  
  722.     Private Sub Button36_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button36.Click
  723.         TextBox1.Text &= Button36.Text
  724.  
  725.         Button36.BackColor = Color.Red
  726.  
  727.         Timer1.Start()
  728.     End Sub
  729.  
  730.     Private Sub Button37_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button37.Click
  731.         TextBox1.Text &= Button37.Text
  732.  
  733.         Button37.BackColor = Color.Red
  734.  
  735.         Timer1.Start()
  736.     End Sub
  737.  
  738.     Private Sub Button38_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button38.Click
  739.         TextBox1.Text &= Button38.Text
  740.  
  741.         Button38.BackColor = Color.Red
  742.  
  743.         Timer1.Start()
  744.     End Sub
  745.  
  746.     Private Sub Button39_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button39.Click
  747.         TextBox1.Text &= Button39.Text
  748.  
  749.         Button39.BackColor = Color.Red
  750.  
  751.         Timer1.Start()
  752.     End Sub
  753.  
  754.     Private Sub Button40_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button40.Click
  755.         TextBox1.Text &= Button40.Text
  756.  
  757.         Button40.BackColor = Color.Red
  758.  
  759.         Timer1.Start()
  760.     End Sub
  761.  
  762.     Private Sub Button41_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button41.Click
  763.         TextBox1.Text &= Button41.Text
  764.  
  765.         Button41.BackColor = Color.Red
  766.  
  767.         Timer1.Start()
  768.     End Sub
  769.  
  770.     Private Sub Button42_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button42.Click
  771.         TextBox1.Text &= Button42.Text
  772.  
  773.         Button42.BackColor = Color.Red
  774.  
  775.         Timer1.Start()
  776.     End Sub
  777.  
  778.     Private Sub Button43_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button43.Click 'enter
  779.  
  780.         Button43.BackColor = Color.Green
  781.  
  782.         Timer1.Start()
  783.  
  784.     End Sub
  785.  
  786.     Private Sub Button44_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button44.Click 'l. Shift
  787.  
  788.         If r = 0 Then
  789.  
  790.             '''
  791.  
  792.             If w = 0 Then
  793.  
  794.                 Button44.BackColor = Color.Green
  795.                 Button56.BackColor = Color.Green
  796.  
  797.                 Button2.Text = "Ё"
  798.                 Button3.Text = "!"
  799.                 Button4.Text = """"
  800.                 Button5.Text = "№"
  801.                 Button6.Text = ";"
  802.                 Button7.Text = "%"
  803.                 Button8.Text = ":"
  804.                 Button9.Text = "?"
  805.                 Button10.Text = "*"
  806.                 Button11.Text = "("
  807.                 Button12.Text = ")"
  808.                 Button13.Text = "_"
  809.                 Button14.Text = "+"
  810.                 Button17.Text = "Й"
  811.                 Button18.Text = "Ц"
  812.                 Button19.Text = "У"
  813.                 Button20.Text = "К"
  814.                 Button21.Text = "Е"
  815.                 Button22.Text = "Н"
  816.                 Button23.Text = "Г"
  817.                 Button24.Text = "Ш"
  818.                 Button25.Text = "Щ"
  819.                 Button26.Text = "З"
  820.                 Button27.Text = "Х"
  821.                 Button28.Text = "Ъ"
  822.                 Button29.Text = "/"
  823.                 Button32.Text = "Ф"
  824.                 Button33.Text = "Ы"
  825.                 Button34.Text = "В"
  826.                 Button35.Text = "А"
  827.                 Button36.Text = "П"
  828.                 Button37.Text = "Р"
  829.                 Button38.Text = "О"
  830.                 Button39.Text = "Л"
  831.                 Button40.Text = "Д"
  832.                 Button41.Text = "Ж"
  833.                 Button42.Text = "Э"
  834.                 Button45.Text = "Я"
  835.                 Button46.Text = "Ч"
  836.                 Button47.Text = "С"
  837.                 Button48.Text = "М"
  838.                 Button49.Text = "И"
  839.                 Button50.Text = "Т"
  840.                 Button51.Text = "Ь"
  841.                 Button52.Text = "Б"
  842.                 Button53.Text = "Ю"
  843.                 Button54.Text = ","
  844.  
  845.                 w = 1
  846.  
  847.             Else
  848.  
  849.                 Button44.BackColor = Color.White
  850.                 Button56.BackColor = Color.White
  851.  
  852.                 Button2.Text = "ё"
  853.                 Button3.Text = "1"
  854.                 Button4.Text = "2"
  855.                 Button5.Text = "3"
  856.                 Button6.Text = "4"
  857.                 Button7.Text = "5"
  858.                 Button8.Text = "6"
  859.                 Button9.Text = "7"
  860.                 Button10.Text = "8"
  861.                 Button11.Text = "9"
  862.                 Button12.Text = "0"
  863.                 Button13.Text = "-"
  864.                 Button14.Text = "="
  865.                 Button17.Text = "й"
  866.                 Button18.Text = "ц"
  867.                 Button19.Text = "у"
  868.                 Button20.Text = "к"
  869.                 Button21.Text = "е"
  870.                 Button22.Text = "н"
  871.                 Button23.Text = "г"
  872.                 Button24.Text = "ш"
  873.                 Button25.Text = "щ"
  874.                 Button26.Text = "з"
  875.                 Button27.Text = "х"
  876.                 Button28.Text = "ъ"
  877.                 Button29.Text = "\"
  878.                 Button32.Text = "ф"
  879.                 Button33.Text = "ы"
  880.                 Button34.Text = "в"
  881.                 Button35.Text = "а"
  882.                 Button36.Text = "п"
  883.                 Button37.Text = "р"
  884.                 Button38.Text = "о"
  885.                 Button39.Text = "л"
  886.                 Button40.Text = "д"
  887.                 Button41.Text = "ж"
  888.                 Button42.Text = "э"
  889.                 Button45.Text = "я"
  890.                 Button46.Text = "ч"
  891.                 Button47.Text = "с"
  892.                 Button48.Text = "м"
  893.                 Button49.Text = "и"
  894.                 Button50.Text = "т"
  895.                 Button51.Text = "ь"
  896.                 Button52.Text = "б"
  897.                 Button53.Text = "ю"
  898.                 Button54.Text = "."
  899.  
  900.                 w = 0
  901.  
  902.             End If
  903.  
  904.             '''
  905.  
  906.         ElseIf r = 1 Then
  907.  
  908.             '''
  909.  
  910.             If w = 1 Then
  911.  
  912.                 Button44.BackColor = Color.Green
  913.                 Button56.BackColor = Color.Green
  914.  
  915.                 Button2.Text = "~"
  916.                 Button3.Text = "!"
  917.                 Button4.Text = "@"
  918.                 Button5.Text = "#"
  919.                 Button6.Text = "$"
  920.                 Button7.Text = "%"
  921.                 Button8.Text = "^"
  922.                 Button9.Text = "&"
  923.                 Button10.Text = "*"
  924.                 Button11.Text = "("
  925.                 Button12.Text = ")"
  926.                 Button13.Text = "_"
  927.                 Button14.Text = "+"
  928.                 Button17.Text = "Q"
  929.                 Button18.Text = "W"
  930.                 Button19.Text = "E"
  931.                 Button20.Text = "R"
  932.                 Button21.Text = "T"
  933.                 Button22.Text = "Y"
  934.                 Button23.Text = "U"
  935.                 Button24.Text = "I"
  936.                 Button25.Text = "O"
  937.                 Button26.Text = "P"
  938.                 Button27.Text = "{"
  939.                 Button28.Text = "}"
  940.                 Button29.Text = "|"
  941.                 Button32.Text = "A"
  942.                 Button33.Text = "S"
  943.                 Button34.Text = "D"
  944.                 Button35.Text = "F"
  945.                 Button36.Text = "G"
  946.                 Button37.Text = "H"
  947.                 Button38.Text = "J"
  948.                 Button39.Text = "K"
  949.                 Button40.Text = "L"
  950.                 Button41.Text = ":"
  951.                 Button42.Text = """"
  952.                 Button45.Text = "Z"
  953.                 Button46.Text = "X"
  954.                 Button47.Text = "C"
  955.                 Button48.Text = "V"
  956.                 Button49.Text = "B"
  957.                 Button50.Text = "N"
  958.                 Button51.Text = "M"
  959.                 Button52.Text = "<"
  960.                 Button53.Text = ">"
  961.                 Button54.Text = "?"
  962.  
  963.                 w = 0
  964.  
  965.             Else
  966.  
  967.                 Button44.BackColor = Color.White
  968.                 Button56.BackColor = Color.White
  969.  
  970.                 Button2.Text = "`"
  971.                 Button3.Text = "1"
  972.                 Button4.Text = "2"
  973.                 Button5.Text = "3"
  974.                 Button6.Text = "4"
  975.                 Button7.Text = "5"
  976.                 Button8.Text = "6"
  977.                 Button9.Text = "7"
  978.                 Button10.Text = "8"
  979.                 Button11.Text = "9"
  980.                 Button12.Text = "0"
  981.                 Button13.Text = "-"
  982.                 Button14.Text = "="
  983.                 Button17.Text = "q"
  984.                 Button18.Text = "w"
  985.                 Button19.Text = "e"
  986.                 Button20.Text = "r"
  987.                 Button21.Text = "t"
  988.                 Button22.Text = "y"
  989.                 Button23.Text = "u"
  990.                 Button24.Text = "i"
  991.                 Button25.Text = "o"
  992.                 Button26.Text = "p"
  993.                 Button27.Text = "["
  994.                 Button28.Text = "]"
  995.                 Button29.Text = "\"
  996.                 Button32.Text = "a"
  997.                 Button33.Text = "s"
  998.                 Button34.Text = "d"
  999.                 Button35.Text = "f"
  1000.                 Button36.Text = "g"
  1001.                 Button37.Text = "h"
  1002.                 Button38.Text = "j"
  1003.                 Button39.Text = "k"
  1004.                 Button40.Text = "l"
  1005.                 Button41.Text = ";"
  1006.                 Button42.Text = "'"
  1007.                 Button45.Text = "z"
  1008.                 Button46.Text = "x"
  1009.                 Button47.Text = "c"
  1010.                 Button48.Text = "v"
  1011.                 Button49.Text = "b"
  1012.                 Button50.Text = "n"
  1013.                 Button51.Text = "m"
  1014.                 Button52.Text = ","
  1015.                 Button53.Text = "."
  1016.                 Button54.Text = "/"
  1017.  
  1018.                 w = 1
  1019.  
  1020.             End If
  1021.  
  1022.             '''
  1023.  
  1024.         End If
  1025.  
  1026.     End Sub
  1027.  
  1028.     Private Sub Button45_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button45.Click
  1029.         TextBox1.Text &= Button45.Text
  1030.  
  1031.         Button45.BackColor = Color.Red
  1032.  
  1033.         Timer1.Start()
  1034.     End Sub
  1035.  
  1036.     Private Sub Button46_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button46.Click
  1037.         TextBox1.Text &= Button46.Text
  1038.  
  1039.         Button46.BackColor = Color.Red
  1040.  
  1041.         Timer1.Start()
  1042.     End Sub
  1043.  
  1044.     Private Sub Button47_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button47.Click 'C
  1045.  
  1046.         If TextBox1.BackColor = Color.SkyBlue Then
  1047.  
  1048.             Button47.BackColor = Color.Green
  1049.  
  1050.             Button57.BackColor = Color.White
  1051.             Button63.BackColor = Color.White
  1052.  
  1053.             t = 0
  1054.  
  1055.             p = TextBox1.Text
  1056.  
  1057.         Else
  1058.  
  1059.             TextBox1.Text &= Button47.Text
  1060.  
  1061.             Button47.BackColor = Color.Red
  1062.  
  1063.         End If
  1064.  
  1065.         TextBox1.BackColor = Color.White
  1066.  
  1067.         Timer1.Start()
  1068.  
  1069.     End Sub
  1070.  
  1071.     Private Sub Button48_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button48.Click 'V, М
  1072.  
  1073.         If Button57.BackColor = Color.Green And Button63.BackColor = Color.Green Then
  1074.  
  1075.             Button48.BackColor = Color.Green
  1076.  
  1077.             TextBox1.Text &= p
  1078.  
  1079.             Button57.BackColor = Color.White
  1080.             Button63.BackColor = Color.White
  1081.  
  1082.             t = 0
  1083.  
  1084.         Else
  1085.  
  1086.             TextBox1.Text &= Button48.Text
  1087.  
  1088.             Button48.BackColor = Color.Red
  1089.  
  1090.         End If
  1091.  
  1092.         Button57.BackColor = Color.White
  1093.         Button63.BackColor = Color.White
  1094.  
  1095.         Timer1.Start()
  1096.  
  1097.     End Sub
  1098.  
  1099.     Private Sub Button49_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button49.Click
  1100.         TextBox1.Text &= Button49.Text
  1101.  
  1102.         Button49.BackColor = Color.Red
  1103.  
  1104.         Timer1.Start()
  1105.     End Sub
  1106.  
  1107.     Private Sub Button50_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button50.Click
  1108.         TextBox1.Text &= Button50.Text
  1109.  
  1110.         Button50.BackColor = Color.Red
  1111.  
  1112.         Timer1.Start()
  1113.     End Sub
  1114.  
  1115.     Private Sub Button51_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button51.Click
  1116.         TextBox1.Text &= Button51.Text
  1117.  
  1118.         Button51.BackColor = Color.Red
  1119.  
  1120.         Timer1.Start()
  1121.     End Sub
  1122.  
  1123.     Private Sub Button52_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button52.Click
  1124.         TextBox1.Text &= Button52.Text
  1125.  
  1126.         Button52.BackColor = Color.Red
  1127.  
  1128.         Timer1.Start()
  1129.     End Sub
  1130.  
  1131.     Private Sub Button53_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button53.Click
  1132.         TextBox1.Text &= Button53.Text
  1133.  
  1134.         Button53.BackColor = Color.Red
  1135.  
  1136.         Timer1.Start()
  1137.     End Sub
  1138.  
  1139.     Private Sub Button54_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button54.Click
  1140.         TextBox1.Text &= Button54.Text
  1141.  
  1142.         Button54.BackColor = Color.Red
  1143.  
  1144.         Timer1.Start()
  1145.     End Sub
  1146.  
  1147.     Private Sub Button55_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button55.Click
  1148.  
  1149.     End Sub
  1150.  
  1151.     Private Sub Button56_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button56.Click 'r. shift
  1152.  
  1153.         If r = 0 Then
  1154.  
  1155.             '''
  1156.  
  1157.             If w = 0 Then
  1158.  
  1159.                 Button44.BackColor = Color.Green
  1160.                 Button56.BackColor = Color.Green
  1161.  
  1162.                 Button2.Text = "Ё"
  1163.                 Button3.Text = "!"
  1164.                 Button4.Text = """"
  1165.                 Button5.Text = "№"
  1166.                 Button6.Text = ";"
  1167.                 Button7.Text = "%"
  1168.                 Button8.Text = ":"
  1169.                 Button9.Text = "?"
  1170.                 Button10.Text = "*"
  1171.                 Button11.Text = "("
  1172.                 Button12.Text = ")"
  1173.                 Button13.Text = "_"
  1174.                 Button14.Text = "+"
  1175.                 Button17.Text = "Й"
  1176.                 Button18.Text = "Ц"
  1177.                 Button19.Text = "У"
  1178.                 Button20.Text = "К"
  1179.                 Button21.Text = "Е"
  1180.                 Button22.Text = "Н"
  1181.                 Button23.Text = "Г"
  1182.                 Button24.Text = "Ш"
  1183.                 Button25.Text = "Щ"
  1184.                 Button26.Text = "З"
  1185.                 Button27.Text = "Х"
  1186.                 Button28.Text = "Ъ"
  1187.                 Button29.Text = "/"
  1188.                 Button32.Text = "Ф"
  1189.                 Button33.Text = "Ы"
  1190.                 Button34.Text = "В"
  1191.                 Button35.Text = "А"
  1192.                 Button36.Text = "П"
  1193.                 Button37.Text = "Р"
  1194.                 Button38.Text = "О"
  1195.                 Button39.Text = "Л"
  1196.                 Button40.Text = "Д"
  1197.                 Button41.Text = "Ж"
  1198.                 Button42.Text = "Э"
  1199.                 Button45.Text = "Я"
  1200.                 Button46.Text = "Ч"
  1201.                 Button47.Text = "С"
  1202.                 Button48.Text = "М"
  1203.                 Button49.Text = "И"
  1204.                 Button50.Text = "Т"
  1205.                 Button51.Text = "Ь"
  1206.                 Button52.Text = "Б"
  1207.                 Button53.Text = "Ю"
  1208.                 Button54.Text = ","
  1209.  
  1210.                 w = 1
  1211.  
  1212.             Else
  1213.  
  1214.                 Button44.BackColor = Color.White
  1215.                 Button56.BackColor = Color.White
  1216.  
  1217.                 Button2.Text = "ё"
  1218.                 Button3.Text = "1"
  1219.                 Button4.Text = "2"
  1220.                 Button5.Text = "3"
  1221.                 Button6.Text = "4"
  1222.                 Button7.Text = "5"
  1223.                 Button8.Text = "6"
  1224.                 Button9.Text = "7"
  1225.                 Button10.Text = "8"
  1226.                 Button11.Text = "9"
  1227.                 Button12.Text = "0"
  1228.                 Button13.Text = "-"
  1229.                 Button14.Text = "="
  1230.                 Button17.Text = "й"
  1231.                 Button18.Text = "ц"
  1232.                 Button19.Text = "у"
  1233.                 Button20.Text = "к"
  1234.                 Button21.Text = "е"
  1235.                 Button22.Text = "н"
  1236.                 Button23.Text = "г"
  1237.                 Button24.Text = "ш"
  1238.                 Button25.Text = "щ"
  1239.                 Button26.Text = "з"
  1240.                 Button27.Text = "х"
  1241.                 Button28.Text = "ъ"
  1242.                 Button29.Text = "\"
  1243.                 Button32.Text = "ф"
  1244.                 Button33.Text = "ы"
  1245.                 Button34.Text = "в"
  1246.                 Button35.Text = "а"
  1247.                 Button36.Text = "п"
  1248.                 Button37.Text = "р"
  1249.                 Button38.Text = "о"
  1250.                 Button39.Text = "л"
  1251.                 Button40.Text = "д"
  1252.                 Button41.Text = "ж"
  1253.                 Button42.Text = "э"
  1254.                 Button45.Text = "я"
  1255.                 Button46.Text = "ч"
  1256.                 Button47.Text = "с"
  1257.                 Button48.Text = "м"
  1258.                 Button49.Text = "и"
  1259.                 Button50.Text = "т"
  1260.                 Button51.Text = "ь"
  1261.                 Button52.Text = "б"
  1262.                 Button53.Text = "ю"
  1263.                 Button54.Text = "."
  1264.  
  1265.                 w = 0
  1266.  
  1267.             End If
  1268.  
  1269.             '''
  1270.  
  1271.         ElseIf r = 1 Then
  1272.  
  1273.             '''
  1274.  
  1275.             If w = 1 Then
  1276.  
  1277.                 Button44.BackColor = Color.Green
  1278.                 Button56.BackColor = Color.Green
  1279.  
  1280.                 Button2.Text = "~"
  1281.                 Button3.Text = "!"
  1282.                 Button4.Text = "@"
  1283.                 Button5.Text = "#"
  1284.                 Button6.Text = "$"
  1285.                 Button7.Text = "%"
  1286.                 Button8.Text = "^"
  1287.                 Button9.Text = "&"
  1288.                 Button10.Text = "*"
  1289.                 Button11.Text = "("
  1290.                 Button12.Text = ")"
  1291.                 Button13.Text = "_"
  1292.                 Button14.Text = "+"
  1293.                 Button17.Text = "Q"
  1294.                 Button18.Text = "W"
  1295.                 Button19.Text = "E"
  1296.                 Button20.Text = "R"
  1297.                 Button21.Text = "T"
  1298.                 Button22.Text = "Y"
  1299.                 Button23.Text = "U"
  1300.                 Button24.Text = "I"
  1301.                 Button25.Text = "O"
  1302.                 Button26.Text = "P"
  1303.                 Button27.Text = "{"
  1304.                 Button28.Text = "}"
  1305.                 Button29.Text = "|"
  1306.                 Button32.Text = "A"
  1307.                 Button33.Text = "S"
  1308.                 Button34.Text = "D"
  1309.                 Button35.Text = "F"
  1310.                 Button36.Text = "G"
  1311.                 Button37.Text = "H"
  1312.                 Button38.Text = "J"
  1313.                 Button39.Text = "K"
  1314.                 Button40.Text = "L"
  1315.                 Button41.Text = ":"
  1316.                 Button42.Text = """"
  1317.                 Button45.Text = "Z"
  1318.                 Button46.Text = "X"
  1319.                 Button47.Text = "C"
  1320.                 Button48.Text = "V"
  1321.                 Button49.Text = "B"
  1322.                 Button50.Text = "N"
  1323.                 Button51.Text = "M"
  1324.                 Button52.Text = "<"
  1325.                 Button53.Text = ">"
  1326.                 Button54.Text = "?"
  1327.  
  1328.                 w = 0
  1329.  
  1330.             Else
  1331.  
  1332.                 Button44.BackColor = Color.White
  1333.                 Button56.BackColor = Color.White
  1334.  
  1335.                 Button2.Text = "`"
  1336.                 Button3.Text = "1"
  1337.                 Button4.Text = "2"
  1338.                 Button5.Text = "3"
  1339.                 Button6.Text = "4"
  1340.                 Button7.Text = "5"
  1341.                 Button8.Text = "6"
  1342.                 Button9.Text = "7"
  1343.                 Button10.Text = "8"
  1344.                 Button11.Text = "9"
  1345.                 Button12.Text = "0"
  1346.                 Button13.Text = "-"
  1347.                 Button14.Text = "="
  1348.                 Button17.Text = "q"
  1349.                 Button18.Text = "w"
  1350.                 Button19.Text = "e"
  1351.                 Button20.Text = "r"
  1352.                 Button21.Text = "t"
  1353.                 Button22.Text = "y"
  1354.                 Button23.Text = "u"
  1355.                 Button24.Text = "i"
  1356.                 Button25.Text = "o"
  1357.                 Button26.Text = "p"
  1358.                 Button27.Text = "["
  1359.                 Button28.Text = "]"
  1360.                 Button29.Text = "\"
  1361.                 Button32.Text = "a"
  1362.                 Button33.Text = "s"
  1363.                 Button34.Text = "d"
  1364.                 Button35.Text = "f"
  1365.                 Button36.Text = "g"
  1366.                 Button37.Text = "h"
  1367.                 Button38.Text = "j"
  1368.                 Button39.Text = "k"
  1369.                 Button40.Text = "l"
  1370.                 Button41.Text = ";"
  1371.                 Button42.Text = "'"
  1372.                 Button45.Text = "z"
  1373.                 Button46.Text = "x"
  1374.                 Button47.Text = "c"
  1375.                 Button48.Text = "v"
  1376.                 Button49.Text = "b"
  1377.                 Button50.Text = "n"
  1378.                 Button51.Text = "m"
  1379.                 Button52.Text = ","
  1380.                 Button53.Text = "."
  1381.                 Button54.Text = "/"
  1382.  
  1383.                 w = 1
  1384.  
  1385.             End If
  1386.  
  1387.             '''
  1388.  
  1389.         End If
  1390.  
  1391.     End Sub
  1392.  
  1393.     Private Sub Button57_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button57.Click 'l. Ctrl
  1394.  
  1395.         If t = 0 Then
  1396.  
  1397.             Button57.BackColor = Color.Green
  1398.             Button63.BackColor = Color.Green
  1399.  
  1400.             t = 1
  1401.  
  1402.         Else
  1403.  
  1404.             Button57.BackColor = Color.White
  1405.             Button63.BackColor = Color.White
  1406.  
  1407.             t = 0
  1408.  
  1409.         End If
  1410.  
  1411.     End Sub
  1412.  
  1413.     Private Sub Button58_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button58.Click
  1414.  
  1415.     End Sub
  1416.  
  1417.     Private Sub Button59_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button59.Click 'l. alt
  1418.  
  1419.         Button44.BackColor = Color.White
  1420.         Button56.BackColor = Color.White
  1421.         Button59.BackColor = Color.Green
  1422.         Button61.BackColor = Color.Green
  1423.  
  1424.         If w = 1 Then
  1425.  
  1426.             Button2.Text = "`"
  1427.             Button3.Text = "1"
  1428.             Button4.Text = "2"
  1429.             Button5.Text = "3"
  1430.             Button6.Text = "4"
  1431.             Button7.Text = "5"
  1432.             Button8.Text = "6"
  1433.             Button9.Text = "7"
  1434.             Button10.Text = "8"
  1435.             Button11.Text = "9"
  1436.             Button12.Text = "0"
  1437.             Button13.Text = "-"
  1438.             Button14.Text = "="
  1439.             Button17.Text = "q"
  1440.             Button18.Text = "w"
  1441.             Button19.Text = "e"
  1442.             Button20.Text = "r"
  1443.             Button21.Text = "t"
  1444.             Button22.Text = "y"
  1445.             Button23.Text = "u"
  1446.             Button24.Text = "i"
  1447.             Button25.Text = "o"
  1448.             Button26.Text = "p"
  1449.             Button27.Text = "["
  1450.             Button28.Text = "]"
  1451.             Button29.Text = "\"
  1452.             Button32.Text = "a"
  1453.             Button33.Text = "s"
  1454.             Button34.Text = "d"
  1455.             Button35.Text = "f"
  1456.             Button36.Text = "g"
  1457.             Button37.Text = "h"
  1458.             Button38.Text = "j"
  1459.             Button39.Text = "k"
  1460.             Button40.Text = "l"
  1461.             Button41.Text = ";"
  1462.             Button42.Text = "'"
  1463.             Button45.Text = "z"
  1464.             Button46.Text = "x"
  1465.             Button47.Text = "c"
  1466.             Button48.Text = "v"
  1467.             Button49.Text = "b"
  1468.             Button50.Text = "n"
  1469.             Button51.Text = "m"
  1470.             Button52.Text = ","
  1471.             Button53.Text = "."
  1472.             Button54.Text = "/"
  1473.  
  1474.             r = 1
  1475.  
  1476.         Else
  1477.  
  1478.             Button2.Text = "ё"
  1479.             Button3.Text = "1"
  1480.             Button4.Text = "2"
  1481.             Button5.Text = "3"
  1482.             Button6.Text = "4"
  1483.             Button7.Text = "5"
  1484.             Button8.Text = "6"
  1485.             Button9.Text = "7"
  1486.             Button10.Text = "8"
  1487.             Button11.Text = "9"
  1488.             Button12.Text = "0"
  1489.             Button13.Text = "-"
  1490.             Button14.Text = "="
  1491.             Button17.Text = "й"
  1492.             Button18.Text = "ц"
  1493.             Button19.Text = "у"
  1494.             Button20.Text = "к"
  1495.             Button21.Text = "е"
  1496.             Button22.Text = "н"
  1497.             Button23.Text = "г"
  1498.             Button24.Text = "ш"
  1499.             Button25.Text = "щ"
  1500.             Button26.Text = "з"
  1501.             Button27.Text = "х"
  1502.             Button28.Text = "ъ"
  1503.             Button29.Text = "\"
  1504.             Button32.Text = "ф"
  1505.             Button33.Text = "ы"
  1506.             Button34.Text = "в"
  1507.             Button35.Text = "а"
  1508.             Button36.Text = "п"
  1509.             Button37.Text = "р"
  1510.             Button38.Text = "о"
  1511.             Button39.Text = "л"
  1512.             Button40.Text = "д"
  1513.             Button41.Text = "ж"
  1514.             Button42.Text = "э"
  1515.             Button45.Text = "я"
  1516.             Button46.Text = "ч"
  1517.             Button47.Text = "с"
  1518.             Button48.Text = "м"
  1519.             Button49.Text = "и"
  1520.             Button50.Text = "т"
  1521.             Button51.Text = "ь"
  1522.             Button52.Text = "б"
  1523.             Button53.Text = "ю"
  1524.             Button54.Text = "."
  1525.  
  1526.             r = 0
  1527.  
  1528.         End If
  1529.  
  1530.         Timer1.Start()
  1531.  
  1532.     End Sub
  1533.  
  1534.     Private Sub Button60_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button60.Click
  1535.         TextBox1.Text &= " "
  1536.  
  1537.         Button60.BackColor = Color.Green
  1538.  
  1539.         Timer1.Start()
  1540.     End Sub
  1541.  
  1542.     Private Sub Button61_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button61.Click 'r. alt
  1543.  
  1544.         Button44.BackColor = Color.White
  1545.         Button56.BackColor = Color.White
  1546.         Button59.BackColor = Color.Green
  1547.         Button61.BackColor = Color.Green
  1548.  
  1549.         If w = 1 Then
  1550.  
  1551.             Button2.Text = "`"
  1552.             Button3.Text = "1"
  1553.             Button4.Text = "2"
  1554.             Button5.Text = "3"
  1555.             Button6.Text = "4"
  1556.             Button7.Text = "5"
  1557.             Button8.Text = "6"
  1558.             Button9.Text = "7"
  1559.             Button10.Text = "8"
  1560.             Button11.Text = "9"
  1561.             Button12.Text = "0"
  1562.             Button13.Text = "-"
  1563.             Button14.Text = "="
  1564.             Button17.Text = "q"
  1565.             Button18.Text = "w"
  1566.             Button19.Text = "e"
  1567.             Button20.Text = "r"
  1568.             Button21.Text = "t"
  1569.             Button22.Text = "y"
  1570.             Button23.Text = "u"
  1571.             Button24.Text = "i"
  1572.             Button25.Text = "o"
  1573.             Button26.Text = "p"
  1574.             Button27.Text = "["
  1575.             Button28.Text = "]"
  1576.             Button29.Text = "\"
  1577.             Button32.Text = "a"
  1578.             Button33.Text = "s"
  1579.             Button34.Text = "d"
  1580.             Button35.Text = "f"
  1581.             Button36.Text = "g"
  1582.             Button37.Text = "h"
  1583.             Button38.Text = "j"
  1584.             Button39.Text = "k"
  1585.             Button40.Text = "l"
  1586.             Button41.Text = ";"
  1587.             Button42.Text = "'"
  1588.             Button45.Text = "z"
  1589.             Button46.Text = "x"
  1590.             Button47.Text = "c"
  1591.             Button48.Text = "v"
  1592.             Button49.Text = "b"
  1593.             Button50.Text = "n"
  1594.             Button51.Text = "m"
  1595.             Button52.Text = ","
  1596.             Button53.Text = "."
  1597.             Button54.Text = "/"
  1598.  
  1599.             r = 1
  1600.  
  1601.         Else
  1602.  
  1603.             Button2.Text = "ё"
  1604.             Button3.Text = "1"
  1605.             Button4.Text = "2"
  1606.             Button5.Text = "3"
  1607.             Button6.Text = "4"
  1608.             Button7.Text = "5"
  1609.             Button8.Text = "6"
  1610.             Button9.Text = "7"
  1611.             Button10.Text = "8"
  1612.             Button11.Text = "9"
  1613.             Button12.Text = "0"
  1614.             Button13.Text = "-"
  1615.             Button14.Text = "="
  1616.             Button17.Text = "й"
  1617.             Button18.Text = "ц"
  1618.             Button19.Text = "у"
  1619.             Button20.Text = "к"
  1620.             Button21.Text = "е"
  1621.             Button22.Text = "н"
  1622.             Button23.Text = "г"
  1623.             Button24.Text = "ш"
  1624.             Button25.Text = "щ"
  1625.             Button26.Text = "з"
  1626.             Button27.Text = "х"
  1627.             Button28.Text = "ъ"
  1628.             Button29.Text = "\"
  1629.             Button32.Text = "ф"
  1630.             Button33.Text = "ы"
  1631.             Button34.Text = "в"
  1632.             Button35.Text = "а"
  1633.             Button36.Text = "п"
  1634.             Button37.Text = "р"
  1635.             Button38.Text = "о"
  1636.             Button39.Text = "л"
  1637.             Button40.Text = "д"
  1638.             Button41.Text = "ж"
  1639.             Button42.Text = "э"
  1640.             Button45.Text = "я"
  1641.             Button46.Text = "ч"
  1642.             Button47.Text = "с"
  1643.             Button48.Text = "м"
  1644.             Button49.Text = "и"
  1645.             Button50.Text = "т"
  1646.             Button51.Text = "ь"
  1647.             Button52.Text = "б"
  1648.             Button53.Text = "ю"
  1649.             Button54.Text = "."
  1650.  
  1651.             r = 0
  1652.  
  1653.         End If
  1654.  
  1655.         Timer1.Start()
  1656.  
  1657.     End Sub
  1658.  
  1659.     Private Sub Button62_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button62.Click
  1660.  
  1661.     End Sub
  1662.  
  1663.     Private Sub Button63_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button63.Click 'r. ctrl
  1664.  
  1665.         If t = 0 Then
  1666.  
  1667.             Button57.BackColor = Color.Green
  1668.             Button63.BackColor = Color.Green
  1669.  
  1670.             t = 1
  1671.  
  1672.         Else
  1673.  
  1674.             Button57.BackColor = Color.White
  1675.             Button63.BackColor = Color.White
  1676.  
  1677.             t = 0
  1678.  
  1679.         End If
  1680.  
  1681.     End Sub
  1682.  
  1683.     Private Sub Button64_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button64.Click
  1684.  
  1685.     End Sub
  1686.  
  1687.     Private Sub Button65_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button65.Click
  1688.  
  1689.     End Sub
  1690.  
  1691.     Private Sub Button66_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button66.Click
  1692.  
  1693.     End Sub
  1694.  
  1695.     Private Sub Button67_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button67.Click 'Fn
  1696.  
  1697.         If y = 0 Then
  1698.  
  1699.             Button3.Text = "F1"
  1700.             Button4.Text = "F2"
  1701.             Button5.Text = "F3"
  1702.             Button6.Text = "F4"
  1703.             Button7.Text = "F5"
  1704.             Button8.Text = "F6"
  1705.             Button9.Text = "F7"
  1706.             Button10.Text = "F8"
  1707.             Button11.Text = "F9"
  1708.             Button12.Text = "F10"
  1709.             Button13.Text = "F11"
  1710.             Button14.Text = "F12"
  1711.  
  1712.             y = 1
  1713.  
  1714.             Button67.BackColor = Color.Green
  1715.  
  1716.         Else
  1717.  
  1718.             Button3.Text = "1"
  1719.             Button4.Text = "2"
  1720.             Button5.Text = "3"
  1721.             Button6.Text = "4"
  1722.             Button7.Text = "5"
  1723.             Button8.Text = "6"
  1724.             Button9.Text = "7"
  1725.             Button10.Text = "8"
  1726.             Button11.Text = "9"
  1727.             Button12.Text = "0"
  1728.             Button13.Text = "-"
  1729.             Button14.Text = "="
  1730.  
  1731.             y = 0
  1732.  
  1733.             Button67.BackColor = Color.White
  1734.  
  1735.         End If
  1736.  
  1737.     End Sub
  1738.  
  1739.     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  1740.  
  1741.         Button44.BackColor = Color.White
  1742.         Button56.BackColor = Color.White
  1743.  
  1744.         If u = 1 Then
  1745.  
  1746.             Button74.BackColor = Color.White
  1747.             Button75.BackColor = Color.White
  1748.             Button76.BackColor = Color.White
  1749.             Button77.BackColor = Color.White
  1750.             Button78.BackColor = Color.White
  1751.             Button79.BackColor = Color.White
  1752.             Button80.BackColor = Color.White
  1753.             Button81.BackColor = Color.White
  1754.             Button82.BackColor = Color.White
  1755.             Button83.BackColor = Color.White
  1756.             Button84.BackColor = Color.White
  1757.             Button85.BackColor = Color.White
  1758.             Button86.BackColor = Color.White
  1759.             Button87.BackColor = Color.White
  1760.             Button88.BackColor = Color.White
  1761.             Button89.BackColor = Color.White
  1762.  
  1763.         Else
  1764.  
  1765.             If Button67.BackColor = Color.Green Then
  1766.  
  1767.                 Button3.Text = "1"
  1768.                 Button3.BackColor = Color.White
  1769.                 Button5.Text = "3"
  1770.                 Button5.BackColor = Color.White
  1771.                 Button6.Text = "4"
  1772.                 Button6.BackColor = Color.White
  1773.                 Button7.Text = "5"
  1774.                 Button7.BackColor = Color.White
  1775.                 Button8.Text = "6"
  1776.                 Button8.BackColor = Color.White
  1777.                 Button9.Text = "7"
  1778.                 Button9.BackColor = Color.White
  1779.                 Button10.Text = "8"
  1780.                 Button10.BackColor = Color.White
  1781.                 Button11.Text = "9"
  1782.                 Button11.BackColor = Color.White
  1783.                 Button12.Text = "0"
  1784.                 Button12.BackColor = Color.White
  1785.                 Button13.Text = "-"
  1786.                 Button13.BackColor = Color.White
  1787.                 Button14.Text = "="
  1788.                 Button14.BackColor = Color.White
  1789.  
  1790.                 y = 0
  1791.  
  1792.                 Button67.BackColor = Color.White
  1793.  
  1794.             Else
  1795.  
  1796.                 If w = 1 And r = 0 Then
  1797.  
  1798.                     Button2.Text = "ё"
  1799.                     Button3.Text = "1"
  1800.                     Button4.Text = "2"
  1801.                     Button5.Text = "3"
  1802.                     Button6.Text = "4"
  1803.                     Button7.Text = "5"
  1804.                     Button8.Text = "6"
  1805.                     Button9.Text = "7"
  1806.                     Button10.Text = "8"
  1807.                     Button11.Text = "9"
  1808.                     Button12.Text = "0"
  1809.                     Button13.Text = "-"
  1810.                     Button14.Text = "="
  1811.                     Button17.Text = "й"
  1812.                     Button18.Text = "ц"
  1813.                     Button19.Text = "у"
  1814.                     Button20.Text = "к"
  1815.                     Button21.Text = "е"
  1816.                     Button22.Text = "н"
  1817.                     Button23.Text = "г"
  1818.                     Button24.Text = "ш"
  1819.                     Button25.Text = "щ"
  1820.                     Button26.Text = "з"
  1821.                     Button27.Text = "х"
  1822.                     Button28.Text = "ъ"
  1823.                     Button29.Text = "\"
  1824.                     Button32.Text = "ф"
  1825.                     Button33.Text = "ы"
  1826.                     Button34.Text = "в"
  1827.                     Button35.Text = "а"
  1828.                     Button36.Text = "п"
  1829.                     Button37.Text = "р"
  1830.                     Button38.Text = "о"
  1831.                     Button39.Text = "л"
  1832.                     Button40.Text = "д"
  1833.                     Button41.Text = "ж"
  1834.                     Button42.Text = "э"
  1835.                     Button45.Text = "я"
  1836.                     Button46.Text = "ч"
  1837.                     Button47.Text = "с"
  1838.                     Button48.Text = "м"
  1839.                     Button49.Text = "и"
  1840.                     Button50.Text = "т"
  1841.                     Button51.Text = "ь"
  1842.                     Button52.Text = "б"
  1843.                     Button53.Text = "ю"
  1844.                     Button54.Text = "."
  1845.  
  1846.                     w = 0
  1847.  
  1848.                 ElseIf w = 0 And r = 1 Then
  1849.  
  1850.                     Button2.Text = "`"
  1851.                     Button3.Text = "1"
  1852.                     Button4.Text = "2"
  1853.                     Button5.Text = "3"
  1854.                     Button6.Text = "4"
  1855.                     Button7.Text = "5"
  1856.                     Button8.Text = "6"
  1857.                     Button9.Text = "7"
  1858.                     Button10.Text = "8"
  1859.                     Button11.Text = "9"
  1860.                     Button12.Text = "0"
  1861.                     Button13.Text = "-"
  1862.                     Button14.Text = "="
  1863.                     Button17.Text = "q"
  1864.                     Button18.Text = "w"
  1865.                     Button19.Text = "e"
  1866.                     Button20.Text = "r"
  1867.                     Button21.Text = "t"
  1868.                     Button22.Text = "y"
  1869.                     Button23.Text = "u"
  1870.                     Button24.Text = "i"
  1871.                     Button25.Text = "o"
  1872.                     Button26.Text = "p"
  1873.                     Button27.Text = "["
  1874.                     Button28.Text = "]"
  1875.                     Button29.Text = "\"
  1876.                     Button32.Text = "a"
  1877.                     Button33.Text = "s"
  1878.                     Button34.Text = "d"
  1879.                     Button35.Text = "f"
  1880.                     Button36.Text = "g"
  1881.                     Button37.Text = "h"
  1882.                     Button38.Text = "j"
  1883.                     Button39.Text = "k"
  1884.                     Button40.Text = "l"
  1885.                     Button41.Text = ";"
  1886.                     Button42.Text = "'"
  1887.                     Button45.Text = "z"
  1888.                     Button46.Text = "x"
  1889.                     Button47.Text = "c"
  1890.                     Button48.Text = "v"
  1891.                     Button49.Text = "b"
  1892.                     Button50.Text = "n"
  1893.                     Button51.Text = "m"
  1894.                     Button52.Text = ","
  1895.                     Button53.Text = "."
  1896.                     Button54.Text = "/"
  1897.  
  1898.                     w = 1
  1899.  
  1900.                 End If
  1901.  
  1902.             End If
  1903.  
  1904.         End If
  1905.  
  1906.         Button2.BackColor = Color.White
  1907.         Button3.BackColor = Color.White
  1908.         Button4.BackColor = Color.White
  1909.         Button5.BackColor = Color.White
  1910.         Button6.BackColor = Color.White
  1911.         Button7.BackColor = Color.White
  1912.         Button8.BackColor = Color.White
  1913.         Button9.BackColor = Color.White
  1914.         Button10.BackColor = Color.White
  1915.         Button11.BackColor = Color.White
  1916.         Button12.BackColor = Color.White
  1917.         Button13.BackColor = Color.White
  1918.         Button14.BackColor = Color.White
  1919.         Button15.BackColor = Color.White
  1920.         Button16.BackColor = Color.White
  1921.         Button17.BackColor = Color.White
  1922.         Button18.BackColor = Color.White
  1923.         Button19.BackColor = Color.White
  1924.         Button20.BackColor = Color.White
  1925.         Button21.BackColor = Color.White
  1926.         Button22.BackColor = Color.White
  1927.         Button23.BackColor = Color.White
  1928.         Button24.BackColor = Color.White
  1929.         Button25.BackColor = Color.White
  1930.         Button26.BackColor = Color.White
  1931.         Button27.BackColor = Color.White
  1932.         Button28.BackColor = Color.White
  1933.         Button29.BackColor = Color.White
  1934.         Button30.BackColor = Color.White
  1935.         Button32.BackColor = Color.White
  1936.         Button33.BackColor = Color.White
  1937.         Button34.BackColor = Color.White
  1938.         Button35.BackColor = Color.White
  1939.         Button36.BackColor = Color.White
  1940.         Button37.BackColor = Color.White
  1941.         Button38.BackColor = Color.White
  1942.         Button39.BackColor = Color.White
  1943.         Button40.BackColor = Color.White
  1944.         Button41.BackColor = Color.White
  1945.         Button42.BackColor = Color.White
  1946.         Button43.BackColor = Color.White
  1947.         Button45.BackColor = Color.White
  1948.         Button46.BackColor = Color.White
  1949.         Button47.BackColor = Color.White
  1950.         Button48.BackColor = Color.White
  1951.         Button49.BackColor = Color.White
  1952.         Button50.BackColor = Color.White
  1953.         Button51.BackColor = Color.White
  1954.         Button52.BackColor = Color.White
  1955.         Button53.BackColor = Color.White
  1956.         Button54.BackColor = Color.White
  1957.         Button59.BackColor = Color.White
  1958.         Button60.BackColor = Color.White
  1959.         Button61.BackColor = Color.White
  1960.  
  1961.         Timer1.Stop()
  1962.  
  1963.     End Sub
  1964.  
  1965.     Private Sub Button90_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button90.Click 'NumLock
  1966.  
  1967.         If o = 0 Then
  1968.  
  1969.             Button74.Text = ""
  1970.             Button75.Text = "Up"
  1971.             Button76.Text = ""
  1972.             Button78.Text = "Left"
  1973.             Button79.Text = ""
  1974.             Button81.Text = "Right"
  1975.             Button82.Text = ""
  1976.             Button83.Text = "Down"
  1977.             Button84.Text = ""
  1978.             Button86.Text = ""
  1979.             Button87.Text = "Del"
  1980.             Button89.Text = ""
  1981.  
  1982.             o = 1
  1983.  
  1984.             Button90.BackColor = Color.Green
  1985.  
  1986.         Else
  1987.  
  1988.             Button74.Text = "7"
  1989.             Button75.Text = "8"
  1990.             Button76.Text = "9"
  1991.             Button78.Text = "4"
  1992.             Button79.Text = "5"
  1993.             Button81.Text = "6"
  1994.             Button82.Text = "1"
  1995.             Button83.Text = "2"
  1996.             Button84.Text = "3"
  1997.             Button86.Text = "0"
  1998.             Button87.Text = "."
  1999.             Button89.Text = "="
  2000.  
  2001.             o = 0
  2002.  
  2003.             Button90.BackColor = Color.White
  2004.  
  2005.         End If
  2006.  
  2007.     End Sub
  2008.  
  2009.     Private Sub Button74_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button74.Click ' 7 num
  2010.  
  2011.         If o = 0 Then
  2012.  
  2013.             TextBox1.Text &= Button74.Text
  2014.  
  2015.             Button74.BackColor = Color.Red
  2016.  
  2017.             Timer1.Start()
  2018.  
  2019.         End If
  2020.  
  2021.     End Sub
  2022.  
  2023.     Private Sub Button75_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button75.Click ' 8 num
  2024.  
  2025.         If o = 0 Then
  2026.  
  2027.             TextBox1.Text &= Button75.Text
  2028.  
  2029.             Button75.BackColor = Color.Red
  2030.  
  2031.             Timer1.Start()
  2032.  
  2033.         End If
  2034.  
  2035.     End Sub
  2036.  
  2037.     Private Sub Button76_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button76.Click '9 num
  2038.  
  2039.         If o = 0 Then
  2040.  
  2041.             TextBox1.Text &= Button76.Text
  2042.  
  2043.             Button76.BackColor = Color.Red
  2044.  
  2045.             Timer1.Start()
  2046.  
  2047.         End If
  2048.  
  2049.     End Sub
  2050.  
  2051.     Private Sub Button78_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button78.Click '4 num
  2052.  
  2053.         If o = 0 Then
  2054.  
  2055.             TextBox1.Text &= Button78.Text
  2056.  
  2057.             Button78.BackColor = Color.Red
  2058.  
  2059.             Timer1.Start()
  2060.  
  2061.         End If
  2062.  
  2063.     End Sub
  2064.  
  2065.     Private Sub Button79_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button79.Click '5 num
  2066.  
  2067.         If o = 0 Then
  2068.  
  2069.             TextBox1.Text &= Button79.Text
  2070.  
  2071.             Button79.BackColor = Color.Red
  2072.  
  2073.             Timer1.Start()
  2074.  
  2075.         End If
  2076.  
  2077.     End Sub
  2078.  
  2079.     Private Sub Button81_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button81.Click '6 num
  2080.  
  2081.         If o = 0 Then
  2082.  
  2083.             TextBox1.Text &= Button81.Text
  2084.  
  2085.             Button81.BackColor = Color.Red
  2086.  
  2087.             Timer1.Start()
  2088.  
  2089.         End If
  2090.  
  2091.     End Sub
  2092.  
  2093.     Private Sub Button82_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button82.Click '1 num
  2094.  
  2095.         If o = 0 Then
  2096.  
  2097.             TextBox1.Text &= Button82.Text
  2098.  
  2099.             Button82.BackColor = Color.Red
  2100.  
  2101.             Timer1.Start()
  2102.  
  2103.         End If
  2104.  
  2105.     End Sub
  2106.  
  2107.     Private Sub Button83_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button83.Click ' 2 num
  2108.  
  2109.         If o = 0 Then
  2110.  
  2111.             TextBox1.Text &= Button83.Text
  2112.  
  2113.             Button83.BackColor = Color.Red
  2114.  
  2115.             Timer1.Start()
  2116.  
  2117.         End If
  2118.  
  2119.     End Sub
  2120.  
  2121.     Private Sub Button84_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button84.Click '3 num
  2122.  
  2123.         If o = 0 Then
  2124.  
  2125.             TextBox1.Text &= Button84.Text
  2126.  
  2127.             Button84.BackColor = Color.Red
  2128.  
  2129.             Timer1.Start()
  2130.  
  2131.         End If
  2132.  
  2133.     End Sub
  2134.  
  2135.     Private Sub Button86_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button86.Click '0 num
  2136.  
  2137.         If o = 0 Then
  2138.  
  2139.             TextBox1.Text &= Button86.Text
  2140.  
  2141.             Button86.BackColor = Color.Red
  2142.  
  2143.             Timer1.Start()
  2144.  
  2145.         End If
  2146.  
  2147.     End Sub
  2148.  
  2149.     Private Sub Button87_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button87.Click ', num, del
  2150.  
  2151.         If o = 0 Then
  2152.  
  2153.             TextBox1.Text &= Button87.Text
  2154.  
  2155.             Button87.BackColor = Color.Red
  2156.  
  2157.             Timer1.Start()
  2158.  
  2159.         Else
  2160.  
  2161.             Button87.BackColor = Color.Green
  2162.  
  2163.             TextBox1.Clear()
  2164.  
  2165.             a = 0
  2166.  
  2167.             Timer1.Start()
  2168.  
  2169.         End If
  2170.  
  2171.     End Sub
  2172.  
  2173.     Private Sub Button89_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button89.Click '= num
  2174.  
  2175.         If o = 0 Then
  2176.  
  2177.             If i = 1 Then
  2178.  
  2179.                 TextBox1.Text = a + TextBox1.Text
  2180.  
  2181.             ElseIf i = 2 Then
  2182.  
  2183.                 TextBox1.Text = a - TextBox1.Text
  2184.  
  2185.             ElseIf i = 3 Then
  2186.  
  2187.                 TextBox1.Text = a * TextBox1.Text
  2188.  
  2189.             ElseIf i = 4 Then
  2190.  
  2191.                 TextBox1.Text = a / TextBox1.Text
  2192.  
  2193.             End If
  2194.  
  2195.             i = 0
  2196.  
  2197.             a = 0
  2198.  
  2199.             Button89.BackColor = Color.Yellow
  2200.  
  2201.             Timer1.Start()
  2202.  
  2203.         Else
  2204.  
  2205.             Button89.BackColor = Color.White
  2206.  
  2207.         End If
  2208.  
  2209.     End Sub
  2210.  
  2211.     Private Sub Button88_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button88.Click '+ num
  2212.  
  2213.         a = TextBox1.Text
  2214.  
  2215.         TextBox1.Text = ""
  2216.  
  2217.         i = 1
  2218.  
  2219.         Button88.BackColor = Color.Yellow
  2220.  
  2221.         Timer1.Start()
  2222.  
  2223.     End Sub
  2224.  
  2225.     Private Sub Button85_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button85.Click '- num
  2226.  
  2227.         a = TextBox1.Text
  2228.  
  2229.         TextBox1.Text = ""
  2230.  
  2231.         i = 2
  2232.  
  2233.         Button85.BackColor = Color.Yellow
  2234.  
  2235.         Timer1.Start()
  2236.  
  2237.     End Sub
  2238.  
  2239.     Private Sub Button80_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button80.Click '* num
  2240.  
  2241.         a = TextBox1.Text
  2242.  
  2243.         TextBox1.Text = ""
  2244.  
  2245.         i = 3
  2246.  
  2247.         Button80.BackColor = Color.Yellow
  2248.  
  2249.         Timer1.Start()
  2250.  
  2251.     End Sub
  2252.  
  2253.     Private Sub Button77_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button77.Click '/ num
  2254.  
  2255.         a = TextBox1.Text
  2256.  
  2257.         TextBox1.Text = ""
  2258.  
  2259.         i = 4
  2260.  
  2261.         Button77.BackColor = Color.Yellow
  2262.  
  2263.         Timer1.Start()
  2264.  
  2265.     End Sub
  2266. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement