我通過按住下拉鍵實現選擇items中的內容,該怎麼操作?

解决方案 »

  1.   

    if DBCombobox.ItemsIndex=0 then
    beginend
    else
    if DBCombobox.ItemsIndex=1 then
    beginend
      

  2.   

    string itemS;
    itemS:=DBCombobox.text;
      

  3.   

    在DBCombobox的ondropdown事件中写
      dBCombobox.Visible:=false
       DateTimePicker1.Visible:=true;
    在DateTimePicker1的oncloseup事件中写
      dBCombobox.text;=datetostr(DateTimePicker1.Date);
      dBCombobox.Visible:=true; 
    你试试看,把效果告诉我
      

  4.   

    to :天堂隔壁
      你這段代碼沒有甚麼作用,我把他寫逕去看了,點擊的一瞬間他的Visible是false,但是我離開議後他還是TRUE,還是要用鼠標逕行點擊