1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
| Public Class Form1
Dim x As Double
Dim y As Double
Dim z As Double
Dim coef As Double
Dim coef1 As Double
Dim moy As Double
Dim gra As Double
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
LineShape1.StartPoint = New Point(25, 700)
LineShape1.EndPoint = New Point(1400, 700)
LineShape2.StartPoint = New Point(50, 710)
LineShape2.EndPoint = New Point(50, 30)
LineShape4.StartPoint = New Point(100, 685)
LineShape4.EndPoint = New Point(100, 715)
End Sub
Private Sub TextBox2_TextChanged(sender As Object, e As EventArgs) Handles TextBox2.TextChanged
coef = TextBox21.Text
coef1 = TextBox22.Text
x = TextBox1.Text
x = ((1000 / coef) * x) + 50
y = TextBox2.Text
y = (680 / coef1) * y
y = Int(600 - y)
z = y
Label1.Location = New Point(x, y)
End Sub
Private Sub TextBox4_TextChanged(sender As Object, e As EventArgs) Handles TextBox4.TextChanged
x = TextBox3.Text
y = TextBox4.Text
x = ((1000 / coef) * x) + 50
y = (680 / coef1) * y
y = Int(600 - y)
Label2.Location = New Point(x, y)
End Sub
Private Sub TextBox6_TextChanged(sender As Object, e As EventArgs) Handles TextBox6.TextChanged
x = TextBox5.Text
y = TextBox6.Text
x = ((1000 / coef) * x) + 50
y = (680 / coef1) * y
y = Int(600 - y)
Label3.Location = New Point(x, y)
End Sub
Private Sub TextBox8_TextChanged(sender As Object, e As EventArgs) Handles TextBox8.TextChanged
x = TextBox7.Text
y = TextBox8.Text
x = ((1000 / coef) * x) + 50
y = (680 / coef1) * y
y = Int(600 - y)
Label4.Location = New Point(x, y)
End Sub
Private Sub TextBox10_TextChanged(sender As Object, e As EventArgs) Handles TextBox10.TextChanged
x = TextBox9.Text
y = TextBox10.Text
x = ((1000 / coef) * x) + 50
y = (680 / coef1) * y
y = Int(600 - y)
Label5.Location = New Point(x, y)
End Sub
Private Sub TextBox12_TextChanged(sender As Object, e As EventArgs) Handles TextBox12.TextChanged
x = TextBox11.Text
y = TextBox12.Text
x = ((1000 / coef) * x)
y = (680 / coef1) * y
y = Int(600 - y)
Label6.Location = New Point(x, y)
End Sub
Private Sub TextBox14_TextChanged(sender As Object, e As EventArgs) Handles TextBox14.TextChanged
x = TextBox13.Text
y = TextBox14.Text
x = ((1000 / coef) * x) + 50
y = (680 / coef1) * y
y = Int(600 - y)
Label7.Location = New Point(x, y)
End Sub
Private Sub TextBox16_TextChanged(sender As Object, e As EventArgs) Handles TextBox16.TextChanged
x = TextBox15.Text
y = TextBox16.Text
x = ((1000 / coef) * x) + 50
y = (680 / coef1) * y
y = Int(600 - y)
Label8.Location = New Point(x, y)
End Sub
Private Sub TextBox18_TextChanged(sender As Object, e As EventArgs) Handles TextBox18.TextChanged
x = TextBox17.Text
y = TextBox18.Text
x = ((1000 / coef) * x) + 50
y = (680 / coef1) * y
y = Int(600 - y)
Label9.Location = New Point(x, y)
End Sub
Private Sub TextBox20_TextChanged(sender As Object, e As EventArgs) Handles TextBox20.TextChanged
x = TextBox19.Text
y = TextBox20.Text
x = ((1000 / coef) * x) + 50
y = (680 / coef1) * y
y = Int(600 - y)
Label10.Location = New Point(x, y)
moy = y / 10
LineShape3.StartPoint = New Point(50, 700)
LineShape3.EndPoint = New Point(x, moy)
End Sub
End Class |
Partager