|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
list1 to form2.listI have a listbox on form1 and a listbox on form2
I need a way to get form1.list1 to form2.list1 the is what I got Private Sub Form_Load() List1.AddItem Form1.List1.List(ListIndex) End Sub but it only shows the first Item from form1 I need all the Items Can any one help For i = 0 to List1.ListCount - 1
List1.AddItem Form1.List1.List(i) Next i Show quote >I have a listbox on form1 and a listbox on form2 >I need a way to get form1.list1 to form2.list1 > >the is what I got > >Private Sub Form_Load() >List1.AddItem Form1.List1.List(ListIndex) >End Sub > >but it only shows the first Item from form1 I need all the Items >Can any one help > > Hay that works thanks
Show quote "Markus Weber (Megalith GmbH)" <m.we***@megalith-software.de> wrote in message news:4281ccaa.6525296@msnews.microsoft.com... > For i = 0 to List1.ListCount - 1 > List1.AddItem Form1.List1.List(i) > Next i > > >>I have a listbox on form1 and a listbox on form2 >>I need a way to get form1.list1 to form2.list1 >> >>the is what I got >> >>Private Sub Form_Load() >>List1.AddItem Form1.List1.List(ListIndex) >>End Sub >> >>but it only shows the first Item from form1 I need all the Items >>Can any one help >> >> > |
|||||||||||||||||||||||