Option Strict On Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click If Val(TextBox1.Text) + Val(TextBox2.Text) + Val(TextBox3.Text) + Val(TextBox4.Text) = 100 Then MessageBox.Show(" :D ", "Résultat", MessageBoxButtons.OK, MessageBoxIcon.Information) End If End Sub End Class
26 févr. 2016 à 08:47
voici donc les codes pour entier et décimal:
@+ Le Pivert