呵呵,我不是大下,是菜鸟。下面是把指定窗体的文本框文本设置为"fdafdafdas"的代码,不知道对你有没有启示。(可用来批量设置不同窗体上的同类控件)Public Sub GiveProperty(FormIn As Form)
Dim ctlControl As ControlFor Each ctlControl In FormIn.Controls
If TypeOf ctlControl Is TextBox Then
ctlControl.Text = "fdafdafdas"
End If
Next ctlControlEnd Sub
Dim ctlControl As ControlFor Each ctlControl In FormIn.Controls
If TypeOf ctlControl Is TextBox Then
ctlControl.Text = "fdafdafdas"
End If
Next ctlControlEnd Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货