Public Class Form1 Dim value1 As Integer = 0 Dim value2 As Integer = 0 Dim value3 As Integer = 0 Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged If ComboBox1.Text = "a" Then TextBox1.Text = value1 + 5 TextBox2.Text = value2 + 15 TextBox3.Text = value3 + 41 End If End Sub End Class
If ComboBox1.Text = "b" Then ' c'est ton boulot End If If ComboBox1.Text = "c" Then ' c'est encore ton boulot End If
si je choisi b l'affichage d'avant reste ou l'effacer ?
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question