成像组合框,如何? [英] Imaged Combo Box, how ?

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

问题描述

使用此组合框 [ ^ ]

有一行:

Use this combobox [^]

There is a line:

imagedComboBox1.Items.Add(new ComboBoxItem("Error", SystemIcons.Error.ToBitmap()));



从系统中取出的图标.如何使该图标来自imageList1?



Icon taken from the system. How to make that icon was taken from imageList1 ??

推荐答案

尝试:
int myIndex = 7; // whatever is your preferred Image index in the ImageList.
imagedComboBox1.Items.Add(new ComboBoxItem("Error", imageList1.Images[myIndex]));


这篇关于成像组合框,如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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