Foxtable(狐表)用户栏目专家坐堂 → [求助]图片管理


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

主题:[求助]图片管理

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2017/9/21 18:39:00 [只看该作者]

currentChanged事件、datacolchanged事件

 

If Forms("入库").opened Then
    If Tables("入库.入库明细").Current IsNot Nothing Then
        Dim pic As WinForm.PictureBox = Forms("入库").Controls("PictureBox1")
        Dim wjm As String = Tables("入库.入库明细").Current("piao据原件")
        If wjm.Contains(".") = False Then  '若文件名不包含.,说明是未知文件
            pic.Image = getimage("other.png")
        Else
            Dim i As Integer = wjm.LastIndexOf(".")
            Dim kzm As String  = wjm.SubString(i+1)
            Dim kzms As String = "swf accdb mdb psd png xls xlsx bmp rar jpg doc docx zip pdf txt ppt exe" '定义已知扩展名
            If kzms.Contains(kzm) = True Then
                pic.image = getimage(kzm & ".png")
            Else
                pic.image = getimage("other.png")
            End If
        End If
    End If
End If


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