Dim dt As Table = Tables("出货基础信息表")
For Each c As WinForm.Control In Forms("窗口3").Controls
If Typeof c Is WinForm.button Then '判断控件是否是文本框
If c.text Like " '" & dt.Rows(1)("客户") & dt.Rows(1)("便次") & "'*"
Output.Show(c.name)
c.text = dt.Rows(1)("客户") & dt.Rows(1)("便次") & "订单处理完成"
c.BackColor = Color.Crimson
Else
Output.Show(c.name)
End If
End If
Next
问下, 为什么 botton 在动态添加控件的时候可以设置 text 文本
但上边的代码却报错? 提示 text 不是 BUTTON 的成员?