VB中查找控件的方法

来源:互联网 发布:百电通软件有问题吗 编辑:程序博客网 时间:2024/06/06 04:22
For Each control In Me.Controls
   
If TypeOf control Is TextBox Then
     
If control.Name = "Text1" Then
        control.Text 
= ""
     
End If
   
End If
Next control