Foxtable(狐表)用户栏目专家坐堂 → [求助]搜索控件时,text属性搜不到:请教


  共有2514人关注过本帖树形打印复制链接

主题:[求助]搜索控件时,text属性搜不到:请教

帅哥哟,离线,有人找我吗?
czy
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 一级勋章 三级勋章 二级勋章
等级:超级版主 帖子:6318 积分:33951 威望:0 精华:10 注册:2008/8/31 20:56:00
  发帖心情 Post By:2014/12/4 12:20:00 [显示全部帖子]

这样试试

Dim dt As Table = Tables("出货基础信息表")
For Each c As WinForm.Control In Forms("窗口3").Controls
    If Typeof c Is WinForm.button Then 
        Dim b As WinForm.button = c
        If b.text Like   " '" & dt.Rows(1)("客户") & dt.Rows(1)("便次") & "'*"
            Output.Show(b.name)
            b.text = dt.Rows(1)("客户") & dt.Rows(1)("便次") & "订单处理完成"
            b.BackColor = Color.Crimson
        Else
            Output.Show(b.name)
        End If
    End If
Next

 回到顶部