我可以从网络上的非共享文件夹中将图片放入PictureBox中吗? (通过Socket方法或任何其他方法) [英] What can I put a picture in PictureBox from not shared folder on a network? (by Socket method or any other method)

查看:50
本文介绍了我可以从网络上的非共享文件夹中将图片放入PictureBox中吗? (通过Socket方法或任何其他方法)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




我可以从网络上的非共享文件夹中将图片放入PictureBox吗?

通过Socket方法或任何其他方法?



谢谢

Hi
What can I put a picture in PictureBox from not shared folder on a network?
by Socket method or any other method ?

Thanks

推荐答案

当floder在网络中共享时,我使用此代码将图像加载到picturebox:



Me.PictureBox1.Load(" \\192.168.5.123\pic\1234.jpg")



现在,当pic floder不在网络中共享时,我应该使用哪个代码? (我在网络中有用户和密码,我想按代码插入)
i use this code to load image to picturebox when floder is share in network:

Me.PictureBox1.Load("\\192.168.5.123\pic\1234.jpg")

now, when pic floder is not share in network, which code should i use? (i have user and password in network, i want insert by code)


这篇关于我可以从网络上的非共享文件夹中将图片放入PictureBox中吗? (通过Socket方法或任何其他方法)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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