清除的内部函数代码如下Dim e = args(0)
For Each c As WinForm.Control In e.Form.Controls
If TypeOf c Is WinForm.TextBox Then '判断控件是否是文本框
Dim t As WinForm.TextBox = c '使用特定类型的变量引用控件
t.Text = ""
End If
Next
For Each c1 As WinForm.Control In e.Form.Controls
If TypeOf c1 Is WinForm.ComboBox Then '判断控件是否是文本框
Dim t1 As WinForm.ComboBox = c1 '使用特定类型的变量引用控件
t1.Text = ""
End If
Next
For Each c2 As WinForm.Control In e.Form.Controls
If TypeOf c2 Is WinForm.DateTimePicker Then '判断控件是否是文本框
Dim t2 As WinForm.DateTimePicker = c2 '使用特定类型的变量引用控件
t2.text = ""
End If
Next