ListBoxControl

效果如下:

示例代码:

string[] girlArr = { "面码", "Saber", "Mathilda" };
// Set the listBox's background color
listBoxControl1.BackColor = Color.FromArgb(254, 246, 212);
// Dock to all edges and fill the parent container
listBoxControl1.Dock = DockStyle.Fill;
// Add items
listBoxControl1.Items.AddRange(girlArr);

CheckedListBoxControl

该控件以列表框的形式显示复选列表;

效果如图:


示例代码:

CheckedListBoxItem[] itemArr = {
new CheckedListBoxItem("January",false),
new CheckedListBoxItem("February", false),
new CheckedListBoxItem("March", false),
new CheckedListBoxItem("April", false),
new CheckedListBoxItem("May", false),
new CheckedListBoxItem("June", true),
new CheckedListBoxItem("July", true),
new CheckedListBoxItem("August", false),
new CheckedListBoxItem("September", false),
new CheckedListBoxItem("October", false),
new CheckedListBoxItem("November", false),
new CheckedListBoxItem("December", false)
};
checkedListBoxControl1.Items.AddRange(itemArr);

ImageListBoxControl控件

https://www.devexpress.com/Support/Center/Question/Details/T106420/how-to-show-image-in-imagelistboxcontrol

1. 新建窗体

2. 拖入ImageListBoxControl控件

3. 拖入ImageCollection控件

4. 设置ImageListBoxControl的ImageList属性为imageCollection1

5. 设置ImageCollection的图片,右击选择: Choose Images

6. 点击窗体上ImageListBoxControl右上角的小箭头,选择Edit Items,设置ImageIndex

ImageListBoxControl 列表框中的每一项都有显示图片的能力;

imageListBoxControl1.Items.Add("面码");
imageListBoxControl1.Items.Add("Saber");
imageListBoxControl1.Items.Add("Mathilda"); imageListBoxControl1.Items[0].ImageIndex = 0;
imageListBoxControl1.Items[1].ImageIndex = 1;
imageListBoxControl1.Items[2}.ImageIndex = 2;

效果如下:

最新文章

  1. React Native之 Navigator与NavigatorIOS使用
  2. Oracle 判断某個字段的值是不是数字
  3. BZOJ 3732: Network 最小生成树 倍增
  4. 二叉树系列 - 二叉搜索树 - 线性时间内把有序链表转化为BST
  5. SqlSever基础 convert 将类型为字符的一列转成Int类型后进行排序
  6. HDU 5432 Pyramid Split
  7. jQurey对表单表格的操作及更多应用(方法型)
  8. 在表单(input)中id和name的区别
  9. jQuery的入门与简介
  10. MySQL Administrator的简单操作
  11. python selenium2示例 - 生成 HTMLTestRunner 测试报告
  12. [H5]API之range对象
  13. java 课程设计 购物车系统 个人
  14. 引号在jsp页面中正确显示的处理
  15. 【php】error_reporting的用法
  16. MySQL之日期时间类型
  17. Keepalived详解(一):Keepalived介绍【转】
  18. oracle中查询用户表/索引/视图创建语句
  19. js 处理 cookie的存储与删除
  20. STM32之HAL库、标准外设库、LL库

热门文章

  1. 浅谈.net jenkins svn下自动化集成环境安装 搭建 配置
  2. POJ 1740(构造博弈)
  3. Window下JDK、Tomcat、eclipse安装与配置
  4. C# WebApi 返回JSON
  5. MVC应用程序JsonResult()的练习
  6. Moon Game (凸四边形个数,数学题)
  7. 生成证书申请csr文件
  8. 类(class)相关概念小结
  9. js弹窗 js弹出DIV,并使整个页面背景变暗
  10. BZOJ2337: [HNOI2011]XOR和路径(期望 高斯消元)