Results 1 to 3 of 3

Thread: Adding items to a Dynamic Combo Box

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2007
    Posts
    43

    Adding items to a Dynamic Combo Box

    i created 2 combo box named combo1, combo2
    Then i wrote a code, that during runtime 5 combo boxes will be created as an array of combo1
    5 more combo boxes will be created as an array of combo2
    Now i want to insert a particular data in first 5 combo boxes Combo1 and i have done the same

    Now when a change of item is made in combobox1(First combo box of Combo1) a function should be called and it should insert the same data in first item of Combo2.
    When a item is changed in Second icombo box of Combo1 the second combo box of Combo2 should have the item of

    Please help me of how to do it

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Adding items to a Dynamic Combo Box

    Moved

  3. #3
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: Adding items to a Dynamic Combo Box

    Private Sub Combo1_Change(Index As Integer)

    is where the program will go when something is changed in Combo1. Index will tell you which box in the array was changed.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

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