1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Public Sub ChTexteCtrls(ByVal ctrl As System.Windows.Forms.Control)
For Each c As System.Windows.Forms.Control In ctrl.Controls
ChTexteCtrls(c)
If TypeOf c Is System.Windows.Forms.DataGridView Then
ChTexteDGV(DirectCast(c, System.Windows.Forms.DataGridView))
Continue For
End If
' teste si typeof Menu (ou autre)
'tous les tests ont fait continue for donc les cas restants on modifie .Text
c.Text = ""
Next
End Sub
Private Sub ChTexteDGV(ByVal d As System.Windows.Forms.DataGridView)
End Sub |
Partager