form2.listbox.Items = form1.Combobox.Items

torg

Regular
Joined
Nov 7, 2002
Messages
60
Location
Norway
My problem is. I have got a combobox1 on form 1. I wish to have Form2.Listbox.Items = Form1.combobox1.Itmes.How do I do that? This is not an MDI application.
 
I solved my problem:
Visual Basic:
Dim newForm1 As New Instillinger()
        Dim i As Integer
        For i = 0 To 9
             Me.cboUtgift.Items.Add(newForm1.ListBox1.Items.Item(i))
        Next
 
Back
Top