创建图像列表框? [英] Creating a ListBox of images?

查看:100
本文介绍了创建图像列表框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的Winforms应用程序上创建一个有序图像的ListBox控件,就像它保存文本一样?

How can I create a ListBox control on my Winforms application that has images in an orderly fashion, just like it holds text?

我想要的图像是看起来像这样:

I'd like the images to appear like this:

也许我甚至不需要使用ListBox。也许为此目的有一个更好的控制?谢谢!

Maybe I don't even need to use a ListBox. Maybe there's a better control out there for this purpose? Thanks!

推荐答案

您可能需要一个所有者绘制列表框。 MSDN页面上有一个示例,用于 DrawItem 事件

You possibly want an owner-draw list box. There's an example on the MSDN page for the DrawItem event.

这篇关于创建图像列表框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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