您的位置:程序门 -> vb -> 多媒体



如何将inet接收的图片显示到picturebox中?


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


如何将inet接收的图片显示到picturebox中?[已结贴,结贴人:nansa2000]
发表于:2007-10-20 14:57:19 楼主
例如:inet.openurl("http://www.163.com/images/001adl.gif")     如何将其显示到picturebox

发表于:2007-10-20 23:37:461楼 得分:0
http://topic.csdn.net/u/20071015/10/2f2a7b0b-54fb-4b87-8ab7-243a7d278ee9.html
发表于:2007-10-22 17:21:432楼 得分:10
private   declare   function   urldownloadtofile   lib   "urlmon"   alias   "urldownloadtofilea"   (byval   pcaller   as   long,   byval   szurl   as   string,   byval   szfilename   as   string,   byval   dwreserved   as   long,   byval   lpfncb   as   long)   as   long

private   sub   form_load()
        dim   bytdata()   as   byte
        inet1.requesttimeout   =   30000
       
        inet1.openurl   "http://xxx.com/login.asp"

        while   inet1.stillEXECuting
                doevents
        wend
       
        downloadfile   "http://xxx.com/x.jpg",   app.path   &   "\tempcode.bmp"
        piccode.picture   =   loadpicture(app.path   &   "\tempcode.bmp")
end   sub

inet下最好用这个.
发表于:2007-10-29 16:35:443楼 得分:5
不用其它api/控件,用vb自带功能加载网络图片
http://hi.baidu.com/starwork/blog/item/66b26f82ae988ca10cf4d2dd.html  
发表于:2007-10-29 16:36:004楼 得分:5
不用其它api/控件,用vb自带功能加载网络图片
http://hi.baidu.com/starwork/blog/item/66b26f82ae988ca10cf4d2dd.html  


快速检索

最新资讯
热门点击