怎样从网络上加载一张图片啊??
还有,怎样点击按钮后,浏览器打开一个intenet站点。

解决方案 »

  1.   

    1.<img src=你的图片路径 width= 图片宽 height= 图片高>
    2.winexec('explorer www.sina.com.cn');
      

  2.   

    第一个是html啊,晕。我是说在delphi的控件timage,怎样从网络加载图片,image1.Picture.LoadFromFile('1.jpg');这是从本地的,从网络如何做?
      

  3.   

    呵呵,Sorry,第一个就算废了吧。我觉得只能从网络上下载到本地,然后再loadfromfile了。
      

  4.   

    1、楼上的是html标记啊,这样可以吗,问一下
    2、ShellExecute建议搜索一下,以前的帖子http://expert.csdn.net/Expert/TopicView1.asp?id=2280694
      

  5.   

    先下载,再装入
    在uses 里加上ShellAPI和UrlMonfunction DownLoadInternetFile(Source, Dest : String): Boolean;
    begin
      try
        Result := URLDownloadToFile(nil,PChar(Source),PChar(Dest),0,nil) = 0
      except
        Result := False;
      end;
    end;procedure TForm1.Button1Click(Sender:TOBject);
    begin
      if DownLoadInternetFile('http://Url/PicFileName','c:\',0,nil) then
         if FileExists('你下载的文件') then
            Image1.Picture.LoadFrom.....
    end;