Results 1 to 2 of 2

Thread: Interesting Combo Box Problem

  1. #1

    Thread Starter
    Addicted Member VB6Coder's Avatar
    Join Date
    Apr 2001
    Location
    Northampton, UK
    Posts
    185

    Smile Interesting Combo Box Problem

    I've got a combobox which is populated with the following items:

    - C:\Program Files\...\Test.Doc
    - C:\Program Files\...\Test2.Doc
    - C:\Program Files\...\Test3.Doc

    When the user selects an item from the drop down the full path is displayed in the textbox part of the combo box (The Combo Box Style property is set to 0)

    e.g.
    Select C:\Program Files\...\Test.Doc from the drop down and the combo box displays C:\Program Files\Microsoft Visual Studio\VB98\Test.Doc

    The problem is, when the user clicks the drop down button, none of the items are selected in the list because the text in the combo box no longer matches an item in the list.

    Can anyone think of a way I can have the full path displayed in the textbox part of the combo box, and have the shorten path selected in the drop down list when it is displayed

    The best idea I have come up with so far is to overlay a textbox control on top of the combobox control, but the textbox loses focus when the combobox is clicked.


  2. #2
    Randalf the Red honeybee's Avatar
    Join Date
    Jun 2000
    Location
    off others' brains
    Posts
    4,345

    Well ...

    I am interested in knowing how you display the complete path when the user clicks on one of the combo items.

    .
    I am not a complete idiot. Some parts are still missing.
    Check out the rtf-help tutorial
    General VB Faq Thread
    Change is the only constant thing. I have not changed my signature in a long while and now it has started to stink!
    Get more power for your floppy disks. ; View honeybee's Elite Club:
    Use meaningfull thread titles. And add "[Resolved]" in the thread title when you have got a satisfactory response.
    And if that response was mine, please think about giving me a rep. I like to collect them!

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