VB 5.0: List Box Helpl Please
Tony Gilbert wrote on Mar 22, 1998
DragonEyes wrote:
>Hi. This is probably an easy question to answer but how in the world do you
>get VB 5.0 to do the following?
>
>How do you transfer the contents(List) of a List Box to another List Box?
>
>Thanks for your help please E-Mail me.
How about:
For I = 1 To List1.ListCount
List2.AddItem List1.List(I)
Next I
--
The Sounds of Red Dwarf http://www.swoon.demon.co.uk
Utilities for Turnpike http://www.swoon.demon.co.uk/other.htm
PGP KeyID: 0x2FB1D3D1
Randy Birch wrote on Mar 23, 1998
:How about:
:
: For I = 1 To List1.ListCount
: List2.AddItem List1.List(I)
: Next I
Actually its:
For I = 0 To List1.ListCount - 1
List2.AddItem List1.List(I)
Next I
Randy Birch, MVP Visual Basic
VBnet, The Visual Basic Developers Resource Centre
http://home.sprynet.com/sprynet/rasanen/vbnet/default.htm
Tony Gilbert wrote in message ...
:DragonEyes wrote:
:>Hi. This is probably an easy question to answer but how in the world do you
:>get VB 5.0 to do the following?
:>
:>How do you transfer the contents(List) of a List Box to another List Box?
:>
:>Thanks for your help please E-Mail me.
:
:How about:
:
: For I = 1 To List1.ListCount
: List2.AddItem List1.List(I)
: Next I
:--
:The Sounds of Red Dwarf http://www.swoon.demon.co.uk
:Utilities for Turnpike http://www.swoon.demon.co.uk/other.htm
:PGP KeyID: 0x2FB1D3D1
Last post on Mar 23, 1998