以下是引用唐尸三摆手在2011-6-30 8:07:00的发言:
老大,帮我看下,下面这段遍历代码报错。
For Each f As WinForm.Form In Forms
For Each fc As WinForm.Control In f.Controls
If Typeof fc Is WinForm.Button Then
Dim fct As WinForm.Button = fc
output.show(fct.name)
End If
Next
Next
貌似语法上没什么问题呀

此主题相关图片如下:screenshot31.jpg

Dim fct As WinForm.Button = fc '这句有问题吧,应当去掉这句。
[此贴子已经被作者于2011-6-30 8:39:00编辑过]