新手,picture的有关问题

新手求助,picture的问题
请教各位高人个问题,如果我要picture控件显示1.jpg,但指定文件夹里没有1.jpg,要让picture指定的默认图片该怎么做
------解决方案--------------------
本帖最后由 bcrun 于 2013-04-15 07:50:51 编辑
    If Dir(指定路径文件) = "" Then
        thefile = 指定路径文件
    Else
        thefile = 缺省文件
    End If
    
    pic1.Picture = LoadPicture(thefile)