ComboBox可不可以只读?
解决方案 »
- TEmbeddedWB 控件问题
- 關於WM_KEYDOWN消息
- 请问在DELPHI中。我用ADOCONNECTION连接MYSQL。为什么无法连接
- 作毕设时遇到一个问题,我想选中dbgrid中的某一行,然后以这一行中某一字段作条件去查询数据库中相应的记录,请问怎么编?
- 如何实现?在线等待,急(先给十分,解决后再加,不食言!!!)
- 如何在ListView中快速填入数据???
- 关于安装程序制作的一个小问题-----立即结帐
- 请各位推荐一下免费、好用的DBGRID构件!
- 请问如何连接并发信息到USB端口
- 大家有没有对自己的程序失去过信心的时候啊,我失去信心了,问的问题有没有人可以解决!呜呜!
- 系统加密!
- 遇到一个奇怪的问题,关于TRegistry。
仅仅能够选择 不能输入
你是要把ComboBox的Style设置为csDropDownList这种效果吗?
csDropDown Creates a drop-down list with an edit box for manually entered text. All items are strings of the same height.
csSimple Creates an edit box with a fixed list (list box) underneath. The length of the list is determined by the Height of the combo box.
csDropDownList Creates a drop-down list with no edit box; the user cannot enter text manually. All items are strings of the same height.
csOwnerDrawFixed Creates an owner-draw drop-down list with no edit box. Each item in the list is the height specified by the ItemHeight property.csOwnerDrawVariable Creates an owner-draw drop-down list with no edit box. List items can have varying heights.
ComboBox1.Style:=csDropDownList;
ComboBox1.Style:=csDropDownList;