开发者

How to add image/icon with each item in Combo box?

开发者 https://www.devze.com 2023-03-01 04:48 出处:网络
I am w开发者_运维知识库orking on win form application using C#. I came across a scenario where i need to provide a ComboBox to user. Now in order to make look and feel more appealing, i want to displa

I am w开发者_运维知识库orking on win form application using C#. I came across a scenario where i need to provide a ComboBox to user. Now in order to make look and feel more appealing, i want to display a small image or icon before each item of that combo box.

I look across some third party controls providing this functionality, but i want to use the default combo box control of visual sutdio. How do i add image by using the default ComboBox control?


Not possible with the default combo box control from Windows Forms. You need a custom solution with an owner draw combo. See an example here.

0

精彩评论

暂无评论...
验证码 换一张
取 消