•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 401,451 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,917 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Views: 2634 | Replies: 2
![]() |
•
•
•
•
Originally Posted by shalini_roy
how do i add items to a combobox from a listbox that is in another form??
You can reference the listbox directly using:
combobox.additem frmOtherfrm.listbox1.index(frmOtherfrm.listbox1.listindex)
This code will grab the currently selected item, and will cause an error if there is no selected item. You probably want to cycle through all the items, or search for a particle one based on criterea though.
------------------------------------------------------------
ConnectNL Directory | NLTourist | Free eLearing Courses
ConnectNL Directory | NLTourist | Free eLearing Courses
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- [req]How to move elements in the list box up and down using command button? (Visual Basic 4 / 5 / 6)
- listbox to respond to another listbox (Graphics and Multimedia)
- Windows Forms Listbox (VB.NET)
- listbox hiccup (Visual Basic 4 / 5 / 6)
- Getting and displaying Output Debug messages to listbox (C#)
- adding totals in listboxes (Visual Basic 4 / 5 / 6)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: to carry tables
- Next Thread: DDE Poke - Stay minimized



Linear Mode