Copy from Combobox to other Combobox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Yogesh Sharma
    New Member
    • Mar 2008
    • 40

    Copy from Combobox to other Combobox

    Suppose I have items in combobox1
    1) On button click event ,I want to copy all the items to combobox2 ? What is the coding for this?
  • SpecialKay
    New Member
    • Mar 2008
    • 109

    #2
    i think you can do a
    [code=cpp]
    foreach(item a in combobox1)
    {
    combobox2.add(a );
    }
    [/code]

    not exactly like this, you will have to modify it a bit.
    but i think you get the idea

    Originally posted by Yogesh Sharma
    Suppose I have items in combobox1
    1) On button click event ,I want to copy all the items to combobox2 ? What is the coding for this?

    Comment

    Working...