CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    listboxes, transferring

    how can i transfer all the contents of a filelistbox to a listbox? I would like the code please. Also, could you give me the code so all the contents of a listbox can be transferred to another listbox?


  2. #2
    Join Date
    Dec 1999
    Location
    Germany
    Posts
    26

    Re: listboxes, transferring

    I don't know if this will fix your problem, but I'd try something like:

    Dim counter as long
    List2.Clear
    for counter = 0 to List1.ListCount-1 step 1 'Lists start at 0
    List2.AddItem List1.List(counter)
    next counter





Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured