Combo box

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • edzonline
    New Member
    • Aug 2006
    • 1

    #1

    Combo box

    can any one teach me or show me how to code combobox and adding an item while running the program
  • Hemant Pathak
    Recognized Expert New Member
    • Jul 2006
    • 92

    #2
    Hi............. ......
    u can try below code
    'For Clear combobox

    combo1.clear

    'Adding the contect in combo box while program is running

    combo1.additem "Write what u want to add"

    ............... ............... ............... ............... ....

    Comment

    • sashi
      Recognized Expert Top Contributor
      • Jun 2006
      • 1749

      #3
      Hi there,

      Hemant is correct.. maybe a little modification will tidy up things.. :)

      Code:
        combo1.additem "text"
        combo1.listindex=0
      what happens now? nothing much.. always shows the top most item 1st.. take care..

      Comment

      Working...