Re: Listboxes .. still no good


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Re: Listboxes .. still no good

  1. #1
    bluezz Guest

    Re: Listboxes .. still no good


    Hey there,

    "Constance J. Petersen" <constance@smartisans.com> wrote:
    >This code works for me:
    >
    >Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
    >System.EventArgs) Handles Button1.Click
    > Dim li As ListItem
    > For Each li In ListBox1.Items
    > If li.Selected = True Then
    > ListBox2.Items.Add(li.Value)
    > End If
    > Next
    >End Sub


    Still doesn't work... li.Selected stays 'False' eventhough i select multiple
    items... also the selection disapears when i click the button

    I'm totally lost overhere ...

    bluezz

  2. #2
    Constance J. Petersen Guest

    Re: Listboxes .. still no good

    Hi bluezz,

    "bluezz" <bluezz_cool@hotmail.com> wrote in message
    news:3ca23e32$1@10.1.10.29...
    > Still doesn't work... li.Selected stays 'False' eventhough i select multiple
    > items... also the selection disapears when i click the button


    Sorry, I've been scratching my head over this, but I can't figure out what's
    going wrong for you. Maybe someone else will have an idea. If you figure it out,
    let us know.
    --
    Constance Petersen, DevX newsgroup section leader
    SoftMedia Artisans, Inc.
    http://www.smartisans.com
    For useful, usable software and Web sites
    Featured Web design: http://www.keweenawnow.com/
    --
    Please reply in the newsgroup so everyone can benefit




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center