| | |
Copy from Combobox to other Combobox
Please support our VB.NET advertiser: Intel Parallel Studio Home
Thread 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:
VB.NET Syntax (Toggle Plain Text)
Dim Value as string 'Im not sure if this should be a string For each Value in cbo2.Items cbo1.items.add(Value) Next
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 *
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 4: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 *
![]() |
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
| Thread Tools | Search this Thread |
.net .net2008 2008 access advanced application array basic beginner browser button buttons center click client code combo convert cuesent data database datagrid datagridview date datetimepicker designer dissertation dissertations dissertationtopic eclipse excel exists fade filter forms function generatetags gridview html images input internet listview map mobile module monitor msaccess net number objects open panel pdf picturebox picturebox2 port position print printing problem read regex remove right-to-left save search searchvb.net select serial settings shutdown socket sqldatbase sqlserver survey temperature textbox timer timespan transparency txttoxmlconverter user usercontol vb vb.net vba vbnet visual visualbasic visualbasic.net visualstudio.net visualstudio2008 web winforms winsock wpf wrapingcode xml year






