没有dropDown的C#组合框 [英] C# comboBox without dropDown

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

问题描述

我有普通的组合框,我想防止任何更改,所以我想让它不显示下拉列表。是否可能?

I have ordinary combobox and I want to prevent any changes on it, so I want to make it not show dropdown. Is it possible?

我已经尝试将 dropDownStyle 更改为simple,但是它显示以下项目列表。

I've tried changing dropDownStyle to simple, but then it shows list of items below.

推荐答案

实现这一目标的一种方法是创建readonly TextBox 组合,wirh精确的大小和字体的组合,所以用户可能不会注意到任何区别。

One way to achieve this is to create readonly TextBox over the combo, wirh exact size and font of the combo, so the user possibly will not notice any difference.

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

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