如何在VB.NET中的图片框中获取FTP图片预览 [英] How do I get a FTP picture preview in picture box in VB.NET

查看:244
本文介绍了如何在VB.NET中的图片框中获取FTP图片预览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有在图片框中预览ftp图片。



我尝试了什么:



I am not getting the preview of ftp image in picture box.

What I have tried:

Dim str As String = "ftp://ftp.sonataindia.com//smart/" & cmbbranch.SelectedItem & "/" & ListBox1.SelectedItem
            PictureBox1.LoadAsync(str)
            btn_approval.Enabled = True

推荐答案

请参阅 PictureBox.LoadAsync方法(字符串) )(System.Windows.Forms) [ ^ ],它表明URL需要是HTTP服务器,而不是ftp。
See PictureBox.LoadAsync Method (String) (System.Windows.Forms)[^], it suggests that the URL needs to be to a HTTP server, rather than ftp.


这篇关于如何在VB.NET中的图片框中获取FTP图片预览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆