Bonjour,

Je désire affecter un texte particulier à un Label quand plusieurs conditions sont rempli. J'ai essayé ce code:

Private Sub Label1_textchanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.textchanged

if RadioButton1.Checked = True then
Label2.Text = "Texte divers"
end if
end sub

Mais cela ne fonctionne pas.
Je me dis que si j'utilise when plutôt que if, cela peut marcher, mais j'ai un problème de syntaxe.

Quelqu'un peut-il m'aider??