Foxtable(狐表)用户栏目专家坐堂 → 求助 动态添加列的图片


  共有2536人关注过本帖平板打印复制链接

主题:求助 动态添加列的图片

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


加好友 发短信
等级:三尾狐 帖子:657 积分:5101 威望:0 精华:0 注册:2013/10/7 22:27:00
求助 动态添加列的图片  发帖心情 Post By:2017/5/9 22:27:00 [只看该作者]

老师:你好!
搞了好几夜,都没搞成功,
想把Tables("qrymyf").rows("ltsu") 图片列动态添加在PictureViewer
For  i As Integer=0 To Tables("qrymyf").rows.count-1
    Dim txt As WinForm.PictureViewer
    txt = e.Form.CreateControl("PictureViewer" & i, ControlTypeEnum.PictureViewer)
    txt.Image = Tables("qrymyf").rows(i)("ltsu")   
    txt.Width = 200
    txt.Height = 250
    txt.Left = 220*i + 500
    txt.Top = 35
    e.Form.Controls("Panel1").AddControl(txt)
    'e.Form.AddControl(txt)
Next
提示:image不是WinForm.PictureViewer的成员
请老师指点!!!谢谢


 回到顶部
总数 11 1 2 下一页