在列表框中显示文件夹中的图片 [英] Display Pictures from Folder in a List Box

查看:192
本文介绍了在列表框中显示文件夹中的图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在寻找一点帮助.

I''m试图写一个程序,让我在C#中的列表框中显示从我的'图片'文件夹中的图片和当选择一个图片我希望它出现在列表框?我只能得到一张照片,但不能得到一个完整的文件夹.我正在尝试在Windows窗体上实现这一点.

有人可以帮忙吗?

Hi,

I''m looking for a little help.

I''m trying to write a programme that allows me to display pictures from my ''Pictures'' folder on a listbox in C# and when a picture is selected I want it to appear on the listbox? I can get a single picture but not a whole folders worth. I''m trying to implement this on a Windows Form.

Can anyone help?

推荐答案

你好

可能对您有帮助...

仔细阅读,尝试实施


在Web应用程序中
http://stackoverflow. com/questions/10516167/populate-files-into-a-listbox-from-a-folder-in-c-sharp-windows-forms [
hello

may this will help you...

read it carefully try to implement


In Web Application
http://stackoverflow.com/questions/2629723/how-do-you-display-a-list-of-images-from-a-folder-on-hard-drive-on-asp-net-web[^]

try this for Window Application
http://stackoverflow.com/questions/10516167/populate-files-into-a-listbox-from-a-folder-in-c-sharp-windows-forms[^]
if any error or problem occur let me know......

Happy To Help!!!


请仔细阅读以下文章

具有酷炫效果的自定义列表框 [带有图标的列表框 [
please go through these articles

Custom List Box with Cool Effects[^]

ListBox with Icons[^]


这篇关于在列表框中显示文件夹中的图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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