Home All Groups Group Topic Archive Search About
Author
11 May 2005 4:02 AM
Spam-is-bad
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

Author
11 May 2005 9:14 AM
Markus Weber (Megalith GmbH)
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
>
>
Author
11 May 2005 7:11 PM
Spam-is-bad
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
>>
>>
>

AddThis Social Bookmark Button