早就在论坛回复过了,怎么不搜索呢?
'下面代码我直接写出来回答你,应当没有错误,你复制到某一个窗体中的按钮CLICK事件中即可使用
'只要你窗体中有文本框控件,就能判断出哪个文本框里内容为空值
dim control as control
for each control in me
if typeof control is textbox then
if len(trim(control.text))=0 then msgbox control.name & "里面为空值"
end if
next
'下面代码我直接写出来回答你,应当没有错误,你复制到某一个窗体中的按钮CLICK事件中即可使用
'只要你窗体中有文本框控件,就能判断出哪个文本框里内容为空值
dim control as control
for each control in me
if typeof control is textbox then
if len(trim(control.text))=0 then msgbox control.name & "里面为空值"
end if
next

===================================================
讨厌C#的行尾的小尾巴;和一对大括号{ }
===================================================