以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  picturebox中动态加入控件,遍历children,没找到控件?  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=194758)

--  作者:foxrobbie
--  发布时间:2025/1/11 1:55:00
--  picturebox中动态加入控件,遍历children,没找到控件?
        Dim p_country As WinForm.picturebox = e.Form.Controls("Pb_国家")
        Dim countrylist As String = ""
        For Each c As WinForm.PictureBox In p_country.children
            countrylist = countrylist & "," & c.Name
        Next
红色的部分编译没问题,但完全没有执行