Guest User

Untitled

a guest
Oct 10th, 2014
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. If RadioButton1.Checked Then
  2. ElseIf TextBox1.Text = ("") And TextBox2.Text = ("") And TextBox3.Text = ("") Then
  3. MsgBox("Trois valeurs sont recquises minimum", MsgBoxStyle.Exclamation, "Pythagore Calculator")
  4. ElseIf TextBox1.Text = ("") And TextBox2.Text = ("") Then
  5. MsgBox("Trois valeurs sont recquises au minimum", MsgBoxStyle.Exclamation, "Pythagore Calculator")
  6. ElseIf TextBox1.Text = ("") And TextBox3.Text = ("") Then
  7. MsgBox("Trois valeurs sont recquises au minimum", MsgBoxStyle.Exclamation, "Pythagore Calculator")
  8. ElseIf TextBox2.Text = ("") And TextBox3.Text = ("") Then
  9. MsgBox("Trois valeurs sont recquises au minimum", MsgBoxStyle.Exclamation, "Pythagore Calculator")
  10. ElseIf TextBox1.Text.Trim.Length > 0 And TextBox2.Text.Trim.Length > 0 And TextBox3.Text.Trim.Length > 0 Then
  11. TextBox4.Text = Val(TextBox2.Text) ^ 2 - Val(TextBox3.Text) ^ 2
  12. TextBox4.Text = Val(TextBox4.Text) - Val(TextBox1.Text) ^ 2
  13. If TextBox4.Text.Trim.Length > 0 Then
  14. TextBox4.Text = ("Rectangle")
  15. ElseIf TextBox4.Text = ("Non Rectangle") Then
  16. End If
  17. End Sub
Advertisement
Add Comment
Please, Sign In to add comment