如何将列表绑定到物理位置 [英] How to bind a list to Physical place
本文介绍了如何将列表绑定到物理位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
以上帝的名义
嗨
在win的C#
如何将列表绑定到实体位置
当我选择数据网格行时,我想要在FlowLayoutPanel上显示图像
我的图像在物理驱动器上,我有一个包含图像标题的列表
In the Name Of God
Hi
in winform of C#
How to bind a list to Physical place
I want when I select the datagrid rows images appear on the FlowLayoutPanel
My Images are on a physical drive and I have a list which contain titles of images
推荐答案
所以基本上你想从磁盘加载图像?
在这种情况下你需要路径到文件,无论是相对的还是绝对的。 (查看此处 [ ^ ])
使用该URI,您可以将正常图像(bmp,jpeg,gif,...)加载到图片框中。
查看图片 [ ^ ]类或位图 [ ^ ]类将图像加载到内存中。
最后你可以将图像附加到 PictureBox [ ^ ]控制。
希望这会有所帮助。
So basically you want to load an image from disk ?
In that case you need the path to the file, be it relative or absolute. (Check here[^])
With that URI you can load a normal image (bmp, jpeg, gif, ...) into the picture box.
Check the Image[^] class or the Bitmap[^] class to load the image in memory.
Finally you can attach the image to the PictureBox[^] control.
Hope this helps.
这篇关于如何将列表绑定到物理位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文