DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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




Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links