Io avevo fatto così e andava
codice:For Each MyObject As Object In Controls ' Iterate through elements. tipo = Trim(MyObject.GetType().ToString()) tipo = Microsoft.VisualBasic.Right(tipo, Len(tipo) - 21) If tipo = "TextBox" Then MyObject.Text = "0" End If Next

Rispondi quotando