Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. Dim zap As String
  2. Dim st As String
  3.  
  4. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  5. zap = TextBox1.Text
  6. st = TextBox2.Text
  7. If st < 1 Then TextBox7.Text = 0 Else
  8. If st >= 1 And st < 5 Then TextBox7.Text = zap * 8 / 100 Else
  9. If st >= 5 And st < 10 Then TextBox7.Text = zap * 15 / 100 Else
  10. If st >= 10 Then TextBox7.Text = zap * 2 / 100
  11.  
  12.  
  13. TextBox4.Text = zap * Val(TextBox3.Text) / 100
  14. TextBox6.Text = zap * Val(TextBox4.Text) / 100
  15. TextBox8.Text = zap * 50 / 100
  16. TextBox9.Text = zap + Val(TextBox7.Text) + Val(TextBox4.Text) + Val(TextBox6.Text) - Val(TextBox8.Text)
  17.  
  18.  
  19. End Sub
  20.  
  21. Private Sub TextBox6_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox6.TextChanged
  22.  
  23. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement