-
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
-
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
Forum Rules
|
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
|
Bookmarks