Results 1 to 3 of 3

Thread: [RESOLVED] Combo Box

  1. #1

    Thread Starter
    Member Mythrandil's Avatar
    Join Date
    Mar 2006
    Posts
    55

    Resolved [RESOLVED] Combo Box

    It is only a minor quibble, however how do you make a combo box so that you cant edit the main text. So when the user clicks the main text aswell as the arrow icon the listdrops down.

    Hope you can understand what i mean :s

  2. #2

    Re: Combo Box

    Change the Style to 2 - Dropdown list, instead of 0 - Dropdown Combo

  3. #3
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Combo Box

    also you will notice if the style is '2' then you cant set the Text property, so the default item will be blank unless you do it like this

    VB Code:
    1. Combo1.AddItem "Cars"
    2. Combo1.AddItem "Vans"
    3. Combo1.AddItem "Lorrys"
    4. Combo1.ListIndex = 0 'this sets the selected item to the first in the list instead of blank
    Chris

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