ComboBox可不可以只读?

解决方案 »

  1.   

    你是要在STYLE里选择csDropDownlist就可以了,
      

  2.   

    将combobox的style属性设为csdropdownlist
      

  3.   

    STYLE里选择csDropDownlist 
    仅仅能够选择 不能输入
      

  4.   

    只读?
    你是要把ComboBox的Style设置为csDropDownList这种效果吗?
      

  5.   

    可以的。style属性帮助写的很明白了
    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.
      

  6.   

    都来抢分ComboBox1.Style:=csDropDownList;
      

  7.   

    同意楼上的
    ComboBox1.Style:=csDropDownList;
      

  8.   

    combobox的style属性设为csdropdownlist
      

  9.   

    偶也来up
    ComboBox1.Style:=csDropDownList;