C#-自定义自己的组合框控件 [英] C#-Custom Own Combo box control

查看:97
本文介绍了C#-自定义自己的组合框控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的

我正在使用C#,我想创建一个新控件,如下图所示.因为我不想在Visual Studio中使用组合框.

I am working with C#, I would like to create a new control as picture below. because i don't want to use Combo box in Visual Studio.

那么,怎么做?

请提出建议....

此致

Ratana

推荐答案

未显示图片-因此我的回答必须是一般性的.

No picture shown - so I will have to be general in my answer.

创建一个新的用户控件

并将类继承从Control更改为ComboBox,然后覆盖或添加您要查找的功能.

and change the class inheritance from Control to ComboBox and then overide or add the features you are looking for.


这篇关于C#-自定义自己的组合框控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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