Results 1 to 5 of 5

Thread: DBCombo - dropdown list

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Location
    Littlehampton, W Sussex GB
    Posts
    203

    Post

    I have a DBCombo with a dropdown list and I want to be able to select something from my list and un-select it. I find it works well for selecting am item but how do I blank out the field again if I need to?? Help please I'm sure this is simple but I don't know how.

  2. #2
    Addicted Member
    Join Date
    Nov 1999
    Location
    y
    Posts
    141

    Post

    How is your code?
    Type your code and i try to help


    Efrat

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 1999
    Location
    Littlehampton, W Sussex GB
    Posts
    203

    Post

    I am not coding - just using the bound control to populate the data field. My problem is that if I restrict the user typing text (which I need to do as I only want items from the table selected) then I also restrict him from blanking it out!

  4. #4
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    I put a small button next to the dropdown (with the caption of "X" or something). Then in the click event of the button I put

    DDComboBox.BoundText=""

    this seems to do the trick.



    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



  5. #5
    Addicted Member pardede's Avatar
    Join Date
    Jan 2000
    Posts
    232

    Post

    I think you can allow user to type into the editbox part of the DBcombo and still enforce restriction using the MatchedWithList property of the combo. That way you can allow user to delete the text entered.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width