Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click MsgBox(Controls.OfType(Of TextBox)().Count(Function(t) t.TextLength = 0) & "個空白です") End Sub
For Each o As Control In Me.Controls
If TypeOf o Is TextBox Then