•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 402,650 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,149 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.
Please support our VB.NET advertiser: Programming Forums
Views: 615 | Replies: 4 | Solved
![]() |
You can't just do a cbo1.items = cbo2.items
You will need to do somthing like:
You will need to do somthing like:
Dim Value as string 'Im not sure if this should be a string For each Value in cbo2.Items cbo1.items.add(Value) Next
•
•
Join Date: Nov 2007
Location: ★ Jogja ★
Posts: 2,477
Reputation:
Rep Power: 9
Solved Threads: 215
vb Syntax (Toggle Plain Text)
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Item As String For Each Item In ComboBox1.Items With ComboBox2.Items .Add(Item) End With Next End Sub
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
•
•
Join Date: Nov 2007
Location: ★ Jogja ★
Posts: 2,477
Reputation:
Rep Power: 9
Solved Threads: 215
you cannot select multiple item with combobox. You can use Listbox to select more than one items.
Last edited by Jx_Man : Apr 24th, 2008 at 3:58 pm.
Never tried = Never Know
So, Please do something before post your thread.
* PM Asking will be ignored *
So, Please do something before post your thread.
* PM Asking will be ignored *
![]() |
•
•
•
•
•
•
•
•
DaniWeb VB.NET Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Multi column combobox (Visual Basic 4 / 5 / 6)
- Delphi 7 - How to create a simple tool? (Pascal and Delphi)
- Source Code that don't work? (Java)
- Hey check out my prog. It has an error can u find it? (Java)
- Something wrong with this (Visual Basic 4 / 5 / 6)
- Help! What Language is this? (Assembly)
- How to make javascript form autochange - "Onchange"? (JavaScript / DHTML / AJAX)
- Help with a reservation program! GUI Messed XD (Java)
Other Threads in the VB.NET Forum
- Previous Thread: not displaying the first image from the database
- Next Thread: Running xsltproc batch file from vb.net app



Linear Mode