For Each Label In GroupBox1.Controls Label.Visible (Label.Text "A") Next
If TypeOf(Objet) Is Label Then End If
For Each C As Control In GroupBox1.Controls If TypeOf (C) Is Label Then DirectCast(C, Label).Visible (DirectCast(C, Label).Text "A") End If Next
For Each Label In GroupBox1.Controls Label.visible = True Next
For Each Label In GroupBox1.Controls Label.show() 'ou Label.hide() Next
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionFor Each Label In GroupBox1.Controls Show('Tous les labels dont le text = "A") Next
Dim i As Integer i = 1 For Each Label In GroupBox1.Controls If i < 6 Then Label.text = "a" Else Label.text = "b" End If i = i + 1 Label.show() Next